1833053 Members
2784 Online
110049 Solutions
New Discussion

passwordless login

 
prajul.keeriyat
Occasional Advisor

passwordless login

hi,
I have generated ssh keygen in source server and copied the authorized key to destination server but still can't able to login without passwd but when i tried reverse scp means generate key in destination server and copied the autorized key to source it works,please help on this.......
3 REPLIES 3
Steven Schweda
Honored Contributor

Re: passwordless login

> [...] source server [...]

What is it? "uname -a"? "ssh -V"?

> [...] destination server [...]

What is it? "uname -a"? "ssh -V"?

> [...] copied the authorized key [...]

Huh? What, exactly, did you copy to where?
My psychic powers are too weak to let me see
which files you have where, and what's in
them (and who owns them, and what their
permissions are).

> [...] can't able to login [...]

"I can't" is not a useful problem
description. It does not say what you did.
It does not say what happened when you did
it.

Adding "-v" (or "-vv", or "-vvv") to an "ssh"
command often provides some useful
information about a problem. Looking in the
system log file(s) on the destination server
can also be useful.

There must be at least a hundred similar
threads already in this forum. Have you
looked at any of them?
Steven E. Protter
Exalted Contributor

Re: passwordless login

Shalom,

Complete procedure.

http://www.hpux.ws/?p=10

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
madhuchakkaravarthy
Trusted Contributor

Re: passwordless login

hi


in server

1.mkdir .ssh
cd .ssh
ssh-keygen -t rsa
two files will be generating
add the host entry of client in server.

in client

copy the id.rsa.pub key in to .ssh of ur home dir.and the same u redirect to authorized_keys.
set 700 for .ssh and 600 for authorized keys


regards

MC