1. sshpass

  • 功能
    sshpass 可以让你在命令行中直接加入密码来进行ssh远程连接或者scp传输文件,多用于shell脚本中。
  • 安装

    # yum install sshpass -y
    # apt-get install sshpass -y
  • 使用

    方法一:# sshpass -p (passwd) ssh [email protected]
    方法二:# sshpass -f (filename) ssh root8.8.8.8
    • filename 为保存密码的文件的文件名
  • 补充

    同样适用于scp: # sshpass -p (passwd) scp xxx.test root:8.8.8.8:/home/test

2. besttrace

  • 功能
    可进行路由跟踪,在vps上可跟踪去程回程的路由从而确定是什么线路。windows版可访问 https://www.ipip.net/product/client.html 下载
  • 下载,解压,赋予运行权限

     # wget -P ./besttrace  https://cdn.ipip.net/17mon/besttrace4linux.zip && unzip besttrace/besttrace4linux.zip -d ./besttrace/ && cd besttrace && chmod +x besttrace
  • 使用

     # ./besttrace (ip)
    

未完待续.jpeg