- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh connection problem
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
11-30-2004 02:41 AM
11-30-2004 02:41 AM
ssh connection problem
I have installed ssh on a HPUX11.00 server. I've generated the necessary keys etc but everytime I try to ssh to the server I get the following error:
Received disconnect from 172.24.10.19: 2: dup #1 failed: Bad file number
I've run the sshd with the extra debug options but it just generates so much info.
Anyone got any ideas on the "bad file number"??
Thanks Barbara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 02:45 AM
11-30-2004 02:45 AM
Re: ssh connection problem
What version of ssh did you install on your HP-UX server? What version of ssh are you trying to connect to it with, and from what type of machine (HP-UX, Linux, Windows, etc.)?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 02:56 AM
11-30-2004 02:56 AM
Re: ssh connection problem
I installed the latest version from HP, T1471AA -> A.03.81.002 HP-UX Secure Shell
I am actually just trying to ssh between a couple of HPUX machines and it works fine on all of my other servers.
It doesn't even work if I try locally on the server!
Cheers Barbara
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 03:00 AM
11-30-2004 03:00 AM
Re: ssh connection problem
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 03:11 AM
11-30-2004 03:11 AM
Re: ssh connection problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 08:51 AM
11-30-2004 08:51 AM
Re: ssh connection problem
I poked around on the web a bit and that 'bad file number' with ssh seems to be an old error. Is it possible that you are starting up an old version of the 'ssh' executeable on that box and not the one from HP? What do you get when you do 'whence ssh'?
I'm running the same version as you, and here is what I have for my 'ssh' executable:
# whence ssh
/usr/bin/ssh
# ls -ld /usr/bin/ssh
lrwxr-xr-x 1 root sys 16 Oct 25 16:32 /usr/bin/ssh -> /opt/ssh/bin/ssh
# ls -ld /opt/ssh/bin/ssh
lrwxr-xr-x 1 root sys 27 Oct 25 16:32 /opt/ssh/bin/ssh -> /opt/ssh/PA-RISC2.0/bin/ssh
# ls -ld /opt/ssh/PA-RISC2.0/bin/ssh
-rwxr-xr-x 1 bin bin 1523712 Jul 2 10:53 /opt/ssh/PA-RISC2.0/bin/ssh
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 07:51 PM
11-30-2004 07:51 PM
Re: ssh connection problem
if you want to fix it please post the outupt of ssh -v
more info can be fount in:
http://www.wellho.net/forum/The-Tcl-programming-language/quot-open-slave-pty-bad-file-number-quot-error.html
http://www.emsei.psu.edu/ecf/alt/general/ssh.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 07:59 PM
11-30-2004 07:59 PM
Re: ssh connection problem
If I do "ssh sapprod" I get the bad file number both locally and from other servers.
However I can ssh out from "sapprod" to other servers......
Below is the output from your suggestion......
sapprod:opt/ssh/PA-RISC2.0/bin->ls -ld ssh
-rwxr-xr-x 1 bin bin 1679360 Jul 3 07:35 ssh
I literally reinstalled the software yesterday.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2004 08:10 PM
11-30-2004 08:10 PM
Re: ssh connection problem
Unfortunately the reinstall solution doesn't work, I already tried that!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 01:15 AM
12-01-2004 01:15 AM
Re: ssh connection problem
I tried this on one of our machines and it was successful.
myhost[root]: swlist -l product | grep -i secure
Secure_Shell A.03.71.000 HP-UX Secure Shell
myhost[root]: ssh myhost
The authenticity of host 'myhost (123.123.123.23)' can't be established.
RSA key fingerprint is 00:0d:8c:aa:bb:cc:dd:ee:ff:01:02:03:04:01:c2:10.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'myhost,123.123.123.23' (RSA) to the list of known hosts.
Password:
Last login: Wed Dec 1 14:54:46 2004 from otherhost
Hint:
I also have myhost in myhost:/.rhosts file
Could this make a difference for you ?
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 01:23 AM
12-01-2004 01:23 AM
Re: ssh connection problem
When you connect to other machine you start the ssh program and connect.
The sshd is listening for incoming ssh connects.
Do you have an sshd running ?
myhost[root]# ps -ef | grep sshd
root 937 1 0 Oct 17 ? 0:00 /opt/ssh/sbin/sshd
If not try start with:
myhost[root]# /sbin/init.d/secsh start
If it doesn't start check:
myhost[root]# cat /etc/rc.config.d/sshd
# SSHD_START: Set to 1 to start SSH daemon
# SSHD_ARGS: Command line arguments to pass to sshd
#
SSHD_START=1
SSHD_ARGS=
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 01:25 AM
12-01-2004 01:25 AM
Re: ssh connection problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 01:29 AM
12-01-2004 01:29 AM
Re: ssh connection problem
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2005 02:54 AM
02-23-2005 02:54 AM