ssh 一些用法

来源:互联网 发布:dota情书淘宝零食店 编辑:程序博客网 时间:2024/06/17 10:17
ssh login without password:
ssh-keygen -t rsa
cat .ssh/id_rsa.pub | ssh root@10.110.12.170 'cat >> .ssh/authorized_keys'

 ssh -L 3306:localhost:3306 root@106.120.172.164

netstat -na | grep :80 | wc -l
netstat -na | grep :80 | grep ESTABLISHED |wc -l



ssh -l root  *.*.*.* (ip)

ssh root@8.8.8.8