1、ssh: connect to host 172.16.0.142 port 22: Connection refused
解决:
在sshd 被连接端输入:
[root@ecs-01 ~]# echo sshd: ALL >> /etc/hosts.allow
[root@ecs-01 ~]# service sshd restart
2、-bash: alias: -x: not found
[root@host-10-1-1-161 test]# ssh 10.1.1.71
Last login: Wed Aug 29 14:18:49 2018 from 10.1.1.161-bash: alias: -x: not found-bash: alias: http://test0001:123@10.1.1.161:3128: not found
解决:
[root@host-10-1-1-71 ~]# vi ~/.bashrcalias "curl=curl -x http://test0001:123@10.1.1.161:3128"