Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ssh without password two computers same network [closed]

I want to ssh between two computers on the same network with a shared file system, running Ubuntu. This is what I did:

  1. made two different rsa keys computer1_rsa.pub an computer2_rsa.pub.
  2. added both of these keys to the authorized_keys file.
  3. when I try and ssh back and forth I still get asked for a password. I get asked for the key passwords, not my ssh password.

How to I configure the machines so I don't have to enter in any passwords? I'm not the admin user so I can't do anything with sudo.

like image 331
erin Avatar asked May 24 '26 16:05

erin


1 Answers

Add the keys to ssh-agent locally.

http://en.wikipedia.org/wiki/Ssh-agent

like image 119
msvalkon Avatar answered May 26 '26 06:05

msvalkon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!