LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how login to remote machine with out password? (https://www.linuxquestions.org/questions/linux-newbie-8/how-login-to-remote-machine-with-out-password-704959/)

bkcreddy17 02-16-2009 01:28 AM

how login to remote machine with out password?
 
hi,
how to login to remote machine without password? after we use
Code:

useradd test
and we use
Code:

passwd test
. i.e the /etc/shadow file should not contain password of test. i tried using rsa i didn't get.
I tried like this.
machine1:
Code:

ssh-keygen -t rsa -f .ssh/id_rsa
scp id_rsa.pub machine2@example.com

Code:

(i have taken blank password)
machine2:
useradd test
cp id_rsa.pub /home/test/.ssh/.authorized_keys

from machine1 when i am trying to do ssh it prompting for rsa password, if cancle it, it is prompting for machine1 password. should we modify any thing in /etc/ssh/sshd_config file? if so what should we change?

thierrys 02-16-2009 02:39 AM

google for "How To Set Up SSH With Public-Key Authentication"

bkcreddy17 02-16-2009 03:30 AM

Tank you thierrys.
after adding user, you should not add password, then use rsa and try to login. it doesn't happen.


All times are GMT -5. The time now is 02:13 AM.