Passwordless SSH
It is quite convenient to ssh without password typing. In order to do this
1) You first need to create a your own KEY file by
ssh-keygen
There will be several questions once you execute above command. But simply disregard them all and hit return key. Now you create a your own KEY file in the current computer.
2) Now you need to copy the KEY to the computer to which you want to ssh. For example, if you want to connect to the computer hostname of i9k1,
ssh-copy-id -i ~/.ssh/id_rsa.pub your_login_ID@i9k1
You need to replace your_login_ID with your real login ID.
3) You can even create an alias in your .cshrc as
alias i9k1 'ssh your_login_ID@i9k1'
After source .cshrc, you can login to the computer by i9k1.
1) You first need to create a your own KEY file by
ssh-keygen
There will be several questions once you execute above command. But simply disregard them all and hit return key. Now you create a your own KEY file in the current computer.
2) Now you need to copy the KEY to the computer to which you want to ssh. For example, if you want to connect to the computer hostname of i9k1,
ssh-copy-id -i ~/.ssh/id_rsa.pub your_login_ID@i9k1
You need to replace your_login_ID with your real login ID.
3) You can even create an alias in your .cshrc as
alias i9k1 'ssh your_login_ID@i9k1'
After source .cshrc, you can login to the computer by i9k1.
Comments
Post a Comment