- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- New to ssh & putty - connection refused
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
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
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
тАО11-22-2007 12:01 AM
тАО11-22-2007 12:01 AM
I have just downloaded & installed ssh on my HPUX 11.11. server. Install worked perfectly. I have downloaded putty.exe to my pc. I now try co connect to the HPUX server using Putty/SSH & I get "Server unexpectedly closed network connection". When I look at syslog.log I see "Refused connection from xx.xx.xxx.xx "(My pc'IP address). I have added a line to /etc/services - ssh 22/ssh # Secure Shell Protocol - but this didn't help. If I use putty to connect using telnet it connects fine. I have looked at the forum but haven't been able to find a solution. Hope someone can help as I'm out of my depth here.
Thanks,
Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2007 12:15 AM
тАО11-22-2007 12:15 AM
Re: New to ssh & putty - connection refused
Try with /sbin/init.d/secsh stop; /sbin/init.d/secsh start
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2007 12:38 AM
тАО11-22-2007 12:38 AM
SolutionIf I recall correctly, SSH as packaged by HP will support libwrap: if you have /etc/hosts.deny and/or /etc/hosts.allow configured, sshd will obey them even though tcpwrapper is not explicitly invoked at any point.
The syslog line "Refused connection from..." indicates that the incoming connection reached the application layer of the HP-UX server, so it's unlikely to be a firewall issue.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2007 12:45 AM
тАО11-22-2007 12:45 AM
Re: New to ssh & putty - connection refused
Thanks,
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2007 01:23 AM
тАО11-22-2007 01:23 AM
Re: New to ssh & putty - connection refused
the server's log is different from a
"connection refused" complaint on the client
side.
Usually, the first step in tracing a problem
like this it to use a verbose "ssh" command
on the client. Something like:
ssh -v [...]
I have no idea how to do this with PuTTY, but
if it has a "-v" option, I'd try that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2007 01:28 AM
тАО11-22-2007 01:28 AM
Re: New to ssh & putty - connection refused
set
SSHD_START=1
then
/sbin/init.d/secsh start
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2007 01:29 AM
тАО11-22-2007 01:29 AM
Re: New to ssh & putty - connection refused
You hit the nail on the head. I have a hosts.allow & a hosts.deny. The hosts.deny says ALL:ALL. I renamed that & putty worked but a little slow. Is it OK to not have a hosts.deny?.
Thanks for all the replies.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2007 04:06 AM
тАО11-22-2007 04:06 AM
Re: New to ssh & putty - connection refused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2007 06:46 PM
тАО11-22-2007 06:46 PM
Re: New to ssh & putty - connection refused
Instead of removing ALL:ALL from hosts.deny, I'd recommend putting "sshd:ALL" or maybe something more limited to hosts.allow.
As with standard tcpwrapper rules, hosts.allow takes precedence over hosts.deny.
MK