Toc
  1. How to Setup SSH for Auto Login without a Password
    1. Quick reminder
    2. Domenation
    3. Readmore
Toc
0 results found
catzillaorz
How to Setup SSH for Auto Login
2021/04/01 SSH
How to Setup SSH for Auto Login without a Password
  • Used for ssh or scp or anything that needs SSH secure access.
Quick reminder
  • If you’ve done it before but forgot, here’s the refresher. (Otherwise, read below.)

On server:

cd .ssh
ssh-keygen -t rsa (hit return through prompts)
cat id_rsa.pub >> authorized_keys
chmod 600 authorized_keys
rm id_rsa.pub

On client:

cd .ssh
scp myserver.com:.ssh/id_rsa myserver.rsa
chmod 600 myserver.rsa
echo "Host myserver" >> config
echo "Hostname reblets.com" >> config
echo "IdentityFile ~/.ssh/myserver.rsa" >> config

Test it:

scp file myserver:.
ssh myserver
Domenation

cd ~/.ssh

ls

scp 209.250.243.238:~/.ssh/id_rsa_vultr id_rsa_vultr.rsa
chmod 600 id_rsa_vultr.rsa

echo "Host 209.250.243.238" >> config
"HostName 209.250.243.238" >> config
echo "IdentityFile ~/.ssh/id_rsa_vultr.rsa" >> config
ssh 209.250.243.238
Readmore

ref

打赏
支付宝
微信
本文作者:catzillaorz
版权声明:本文首发于catzillaorz的博客,转载请注明出处!