- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: OpenSSH not connecting - closed by foreign hos...
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
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
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
02-12-2003 06:57 AM
02-12-2003 06:57 AM
OpenSSH not connecting - closed by foreign host
I have OpenSSH 3.5p1 installed on both machines. They are both inside my firewall. I can ssh from each machine to the other with root, but not with my account. I can telnet from one to the other. I think I have everything set up correctly. I have not uncommented anything in the sshd_config file to begin with. I think the default settings are good. Attached is a ssh -v from one to the other. What is causing the problem? Points will be awarded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 07:13 AM
02-12-2003 07:13 AM
Re: OpenSSH not connecting - closed by foreign host
If root is able to do ssh, then I believe ssh setup is ok. There are the following things to check for that user on the remote system.
1. Make sure you can be able to do telnet. Password expiry will not let ssh to prompt for the new password.
2. There could be a problem with the permissions on the home directory of the user. sshd_config by default will be enabled with "Strictmodes yes". So, the permission at the max you can have is 750. Try changing the permissions of the users home directory on the remote system and see if it works
You will get more details on the servers side by running sshd with debug (-d) option.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 07:27 AM
02-12-2003 07:27 AM
Re: OpenSSH not connecting - closed by foreign host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 07:29 AM
02-12-2003 07:29 AM
Re: OpenSSH not connecting - closed by foreign host
check your sshd-logfile of machine test02, maybe there is a hint.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 07:58 AM
02-12-2003 07:58 AM
Re: OpenSSH not connecting - closed by foreign host
/home 750
/home/jpeace 750 jpeace is owner
/home/jpeace/.ssh 750 jpeace is the owner
/home/jpeace/.ssh/authorized_keys 644 jpeace owner
I restarted sshd with -d and have attached my attempt. Is the problem:
debug1: PAM setting tty to "/dev/pts/0"
PAM session setup failed[33]: General Commercial Security error
What would cause this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 11:02 AM
02-12-2003 11:02 AM
Re: OpenSSH not connecting - closed by foreign host
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 12:19 PM
02-12-2003 12:19 PM
Re: OpenSSH not connecting - closed by foreign host
/home 755
/home/jpeace 755
/home/jpeace/.ssh 755
/home/jpeace/.ssh/authorized_keys 644
On both machines. I have uninstalled, removed all files, reinstalled and reconfigured on test02. I still got the same debug messages as the attachment from my last message. The main problem still seemed to be.
debug1: PAM setting tty to "/dev/pts/0"
PAM session setup failed[33]: General Commercial Security error
I then edited the sshd_config. I uncommented and changed to:
UsePrivilegeSeparation no
It worked. Will this cause me problems in the future?
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2003 03:44 PM
02-12-2003 03:44 PM
Re: OpenSSH not connecting - closed by foreign host
If this problem still occurs, then I haven't a notion as to what else to do. We're using ssh here on 31 HP-UX 11.0 and 11i machines without complaint, issue, or modification of the sshd_config file. Every one of the 31 machines was configured using the document that I previously attached. We also use secureCRT, winSCP2, and puTTY without incident.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2003 11:28 AM
02-13-2003 11:28 AM
Re: OpenSSH not connecting - closed by foreign host
UsePrivilegeSeparation yes
Once I change it to
UsePrivilegeSeparation no
it works. I will keep doing research. Thanks for all the help Chris. If I ever figure it out I will post here.