- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SSH Problem on HP box - ssh:Name or service no...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 04:55 AM
тАО07-09-2008 04:55 AM
SSH Problem on HP box - ssh:Name or service not known
Hello Experts,
While connecting to server via ssh, i observed below error:
ssh -l username servername
ssh: servername: Name or service not known
Please, suggest what is the solution to overcome this problem and get ssh connection to server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 04:57 AM
тАО07-09-2008 04:57 AM
Re: SSH Problem on HP box - ssh:Name or service not known
swlist -l product | grep -i secure
You should see a product called secure shell, which is openssh.
/sbin/init.d/secsh start
On the target machine if its an HP-UX system.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 05:48 AM
тАО07-09-2008 05:48 AM
Re: SSH Problem on HP box - ssh:Name or service not known
I checked on the server. there is no problem. sshd is daemon is running fine.
My question is
when i do ssh with hostname its giving me error, but when i do ssh with ip address its sucessful.
It must be problem with name resolutin service. I tried to check, but didnt find anything.
My nsswitch conf file is having below entry:
#hosts: db files ldap nis dns
hosts: files dns
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 05:54 AM
тАО07-09-2008 05:54 AM
Re: SSH Problem on HP box - ssh:Name or service not known
You can disable it in sshd_conf file on the server :
UseDNS no
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 06:05 AM
тАО07-09-2008 06:05 AM
Re: SSH Problem on HP box - ssh:Name or service not known
Thanks for reply.
The server from where i am doing ssh to HP box is linux server.
Can your provide me the complete path of sshd_config.
ALso step was procedure of solution to this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 03:21 AM
тАО07-10-2008 03:21 AM
Re: SSH Problem on HP box - ssh:Name or service not known
HP-UX - /etc/opt/ssh/sshd-config
Check also name resolutions - target host should be resolved from source host.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 03:54 AM
тАО07-10-2008 03:54 AM
Re: SSH Problem on HP box - ssh:Name or service not known
did you try IP instead of servername?
Are you running a local DNS that maps your server IP to
#ping
If the answer to both is no, then you can only ssh by IP address.