cancel
Showing results for 
Search instead for 
Did you mean: 

ssh question

Silver_1
Regular Advisor

ssh question

Friends,

While i do an ssh to another machine as root i can do everything perfectly. But when i try it as oracle user, here is the output.

/home/oracle> ssh hp01
ssh: hp01: host nor service provided, or not known
/home/oracle>

Anybody has an input.

Thanks.
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: ssh question

Shalom,

No hostname resolution as the oracle user?

Thats rather unusual.

Checklist:
sshd_config
ssh_config
perhaps there is an entry on one or both machines preventing ssh.

Perhaps there is no oracle user on host hp01.

As root, try this

ssh oracle@hp01

If that works, the issue is environment or configuration.

On the target host:
tail -f /var/adm/syslog/syslog.log

Then ssh to it. See if anything shows up on the log. If there is information it is likely to be helpful in the diagnosis.

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
Silver_1
Regular Advisor

Re: ssh question

As root it asks for the password.

root@hp01:/etc# ssh oracle@hp02
Password:
Sandman!
Honored Contributor

Re: ssh question

You are ssh'ing to hp01 or hp02 since the command you used in your last post is "ssh oracle@hp02" instead of "ssh oracle@hp01" ??
Ermin Borovac
Honored Contributor

Re: ssh question

There was a bug in some older versions of openssh that caused this issue.

http://bugzilla.mindrot.org/show_bug.cgi?id=239

It's been resolved in more recent versions of openssh.
Silver_1
Regular Advisor

Re: ssh question

Mistakes in the config files.

Thanks Guys.