User Tools

Site Tools


linux:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ssh [2014/12/20 06:03] percylinux:ssh [2017/12/15 13:22] (current) – [multiple ssh keys] percy
Line 55: Line 55:
     User root     User root
 </code> </code>
 +
 +so finally the config will be like this
 +<code>
 +Host ef.pjq.me
 +    IdentityFile ~/.ssh/digitalocean_rsa
 +    User root
 +
 +Host aliyun.pjq.me
 +    IdentityFile ~/.ssh/aliyun_rsa
 +    User root
 +
 +Host vps.pjq.me
 +    IdentityFile ~/.ssh/yardvps_rsa
 +    User root
 +</code>
 +
 +  - Refer https://serverfault.com/questions/295768/how-do-i-connect-to-ssh-with-a-different-public-key
 +====== ssh socks 5 ======
 +  ssh -qTfnN -D 7070 root@vps.pjq.me -p 2222
/var/www/dokuwiki/wiki/data/attic/linux/ssh.1419026604.txt.gz · Last modified: 2016/05/05 13:06 (external edit)