Visit Our UNIX and Linux User Community


issue while auto login using .ssh for HPUX


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting issue while auto login using .ssh for HPUX
# 1  
Old 05-19-2011
issue while auto login using .ssh for HPUX

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 (publickey,password,keyboard-interactive).

Any ideas on possible solution on this.

Thanks in advance.
# 2  
Old 05-19-2011
check permissions on both sides. your home directory should not allow group or other write privileges, your .ssh directory should only allow the owner full privileges, same for the authorized_keys file.
Code:
chmod go-w $HOME
chmod 700 $HOME/.ssh
chmod 600 $HOME/.ssh/authorized_keys


Last edited by unxscorob; 05-19-2011 at 10:25 AM.. Reason: more details added
# 3  
Old 05-19-2011
Sorry, tried your chmod options. but still not working. any more ideas?
# 4  
Old 05-19-2011
if you have access to the remote side, you can start your own sshd process, on a available port higher than 1024, with verbose, or debug enabled, version depends, review the sshd man page for your system. this will require separate login session for each server.

Code:
remote_server$ sshd -d -d -p 4222

Code:
local_server$ ssh -v -v -p 4222 remote_server

sshd will let you know what is stopping the connection, if not, add another -d, and review the debug output for details.
# 5  
Old 05-19-2011
Thanks for the reply.

But we dont have root access ..any work around ?
# 6  
Old 05-19-2011
no need to be root so long as you use a port number higher than 1024. give it a try.

Previous Thread | Next Thread
Test Your Knowledge in Computers #897
Difficulty: Medium
BusyBox is a package containing multiple binaries.
True or False?

9 More Discussions You Might Find Interesting

1. Red Hat

SSH login issue

Dear All , recently i have configured sftp for a user for which i have done chroot. but after this , sftp is working fine . but ssh is not working when we connect to the server. When we try to ssh <user>@<server ip> , the below is the error message that we get and not able to login. ... (2 Replies)
Discussion started by: jegaraman
2 Replies

2. SuSE

SSH issue - can't get password less login to work

Hello, I can't seem to get the password less login to work on one of my SLES 11 servers. My ssh agent lets me login to all my other servers, which are Solaris 10, RHEL 5, and SLES 11 servers. Some servers mount my home directory and others don't. The server that I'm having an issue with doesn't... (7 Replies)
Discussion started by: bitlord
7 Replies

3. Cybersecurity

SSH password-less login issue between linux and solaris

Hello Gurus, I am trying to set up bidirectional password-less login between a linux and a Solaris. The way I am doing is very simple, which is creating pub/priv key pairs on each host and add the pub key to each other's authorized_keys file: ssh-keygen -t rsa (I tried dsa, and it didn't work... (4 Replies)
Discussion started by: error_lee
4 Replies

4. Emergency UNIX and Linux Support

SSH password login issue

Hi All, I am facing issue in setting up passwordless login through ssh on two Solaris-10 boxes. user-id ravrwa from server tsapiq04-zrwdq01 should be able to login to server tsbrit03 as cpsuserq, which is not happening. I am not sure where is the problem, while keys are already all set. Here is... (14 Replies)
Discussion started by: solaris_1977
14 Replies

5. UNIX for Dummies Questions & Answers

auto login not working after ssh-keygen

Hi, I have a generic id say "abc". In a client i logged into using this generic id and generated the key for autologin to do ssh to a server. I have kept the key in authorized_keys file in the server under the home directory of this generic id. (/u/abc/.ssh/authorized_keys) when i do... (7 Replies)
Discussion started by: rbalaj16
7 Replies

6. Solaris

passwordless login issue with ssh keys

Hi GUYS, Me have 2 servers, eg:: A & B id_dsa.pub key of B had been put in authorized_keys of A & Vice versa Passwordless login going from A to B. But while connecting from B to A ,its asking password Any one please help me out.. (6 Replies)
Discussion started by: racechap
6 Replies

7. Solaris

ssh login issue after patching

Hi Everybody, Recently i applied patch cluster dated (2009.11.03) for solaris 10 sparc machine(Generic_138888-06) I successfully applied and rebooted the machine , no errors received. But after patching it was not allowing me to login through ssh while telnet was working fine.Logs showed me ... (11 Replies)
Discussion started by: laxmikant
11 Replies

8. HP-UX

Auto terminating processes in HPUX

We are runing HPUX on a 7400 server. Some of our users are sitting in records for hours at a time and locking essential records or tables (A discipline issue I know, and I'm working on it.... However). Does anybody know of a way to automatically terminate processes that have been idle for a... (1 Reply)
Discussion started by: Yantoch
1 Replies

9. HP-UX

hpux startup process, AUTO file?

hi, one of the process of hpux startup is this ISL where it consults the AUTO file. is this AUTO file resident in disk? thanks (5 Replies)
Discussion started by: yls177
5 Replies

Featured Tech Videos