can you please post the command you enter to start the ssh session and the output of the subsequent login failure? (please use verbose output from ssh with the -vvv switch)
options to note:
1. is /u/abc/ the right home directory for abc?
2. maybe its about time you create a new id_rsa.pub adn copy the contents anew to your server's authorized_keys
As i already mentioned, it is working fine for other generic ids. so it is not time which is the fact for the issue.
i ran the command ssh-keygen -t rsa and it created a file named id_rsa.pub which contains the value that i copied it to authorized_keys file in /u/abc in the server.
it is not giving any error when it tried to login automatically from client, just asking password to enter.
also i found something else when i dig more,
i logged in to server directly by this way
when it goes inside, it is not setting the PATH variable which wil be set using the procedure mentioned in .login or .profile file under /u/abc. even whoami command also not working. is this the one making issue when i try to autologin?
but for other generic ids PATH set is working fine.
regarding getting rid of the password request at login time, try to explicitly specify the full path to the id_rsa (the local *private* key) on your local host with the -i switch of ssh command and let's see if passwordless login works.
Please also use the -vvv switch so that we can see the full ssh session debug messages.
can you please try to check if .bashrc in the user's remote home directory is exsistent and contains a PATH definition? If not, create/edit the .bashrc file so that there is a PATH definition in there; finally source .bashrc in your users' remote homedir .bash_profile, i.e.:
let us know how it goes
see ya
fra
Hi Friends,
I am unable to run our application commands on remote server using ssh (passwordless login enabled). But the same command running with telent perl script. please suggest.
SSH:
C:/bin>ssh -l monitor tl04cp01 exec "/home/monitor/123"
/home/monitor/123: viewlog: not found.
... (7 Replies)
This is Solaris 10 and sorce+destination are non root user. Somehow it is broke and I am not able to fix it. Already checked permissions on both servers and authorized_keys entry of destination is same as id_rsa.pub of source server. I can not regenerate keys on source server because I do not know,... (0 Replies)
Hi,
I using ssh-keygen for passwordless authenciation firstly
and I am following these steps mentioned below...
1) Login to pngpcdb1 using your user/pass
2) type 'bash' (without quotes)
3) ssh-keygen #generates private and public key.
4) copy this private key to the location of your sftp... (1 Reply)
Hi,
I was going thruough the password less authentication of keygen-ssh that will help us in generating keys...One thing that is not clear to me that if in nearby future we conncet to remote ftp server in that case now we need to only provide the user id itself that is password would not be... (1 Reply)
Hi,
I am new to unix, recently i was exploring password less remote connection to the ftp server and in that I was exploring the ssh-keygen utility, that it generates private & public keys that helps in transmitting files in encrypted format.Could you please explain me in detail about the... (1 Reply)
Hi,
While trying to supress password prompt using ssh. I have added .ssh folder manually and generated public key and added to authorized_keys file in the remote machine. But still it's prompting for passwords with the following message:
Permission denied... (5 Replies)
Hey guys,
I was using ssh-keygen settings for a long time to login on remote machines without password.
2 days back it suddenly stops working, i tried by reset all ssh-keygen setting but it not works.
what could be the reason of this issue and how can i resolve this? (2 Replies)
I have to login with ssh to a UNIX box and execute a script in it.
How will i make use of ssh-keygen so that while login using ssh it wont ask the passwod. ssh-copy-id is not working in my UNIX box . What might be the reason. Please help. (1 Reply)
Hello friends,
I wanna to make new script which work as i defined below
(1) it connect (using ssh) to remote server
(2) remote server having passphrase key with password
(3) Generate new passphrase on local machine with random 8 character password.
(4) It will atomatically uploaded to... (4 Replies)
I have created the keys and placed the public key in the remote user directory (not the server root).
(remote machine: dwebapp1)
ex: /home/webarch/user_name/.ssh/authorized_keys2
cannot ssh into the remote machine using the following command:
ssh ${dwebapp1}
the manned description gives... (10 Replies)