Linux基础-SSH
ssh:安全壳协议
netstat -an |grep 22
ssh 192.168.10.34
ssh的cp,类似上传下载
scp /etc/hosts 192.168.16.151:/tmp
ssh钥匙和锁:
ssh-keygen
ls /root/.ssh
id_rsa 钥匙
id_rsa.pub锁
ssh-copy-id -i python-web2
cd /root/.ssh
ls
cat authorzed_keys
服务端 cat authorzed_keys
ssh-copy-id -i rd_rsa.pub python-web2 -p 8888
加好端口,一般不是22,容易被攻击
ssh python-web2 -p 22