Re: SSH commands to HMC
- From: Andrew Garnett <andrewwdg@xxxxxxxxxxx>
- Date: Tue, 12 Sep 2006 13:30:19 +0100
Thanks to all for any advice.
Edward, the output from verbose mode is not very
helpful as you can see below (timeout).
The crazy thing is that an identical call 2 seconds
later works OK (below).
It is as if the 1st call fails, but somehow wakes up
the connection.
ssh -v -v -l hscroot 10.26.10.21 date
OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b
10 Apr 2003
debug1: Reading configuration data
/usr/local/etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.26.10.21 [10.26.10.21] port
22.
debug1: connect to address 10.26.10.21 port 22:
Connection timed out
ssh: connect to host 10.26.10.21 port 22: Connection
timed out
root@node9>ssh -v -v -l hscroot 10.26.10.21 date
OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7b
10 Apr 2003
debug1: Reading configuration data
/usr/local/etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.26.10.21 [10.26.10.21] port
22.
debug1: Connection established.
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type -1
debug2: key_type_from_name: unknown key type
'-----BEGIN'
debug2: key_type_from_name: unknown key type
'Proc-Type:'
debug2: key_type_from_name: unknown key type
'DEK-Info:'
debug2: key_type_from_name: unknown key type
'-----END'
debug1: identity file /.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software
version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat
OpenSSH_3.2*,OpenSSH_3.3*,OpenSSH_3.4*,OpenSSH_
3.5*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.7p1
..
..
. etc until successful connection
I assume that ssh, ssl firewalls etc are OK since I do
actually get a success on subsequent calls.
--- "Davignon, Edward"
<Edward.Davignon@xxxxxxxxxxxxxx> wrote:
What are the results of verbose mode:___________________________________________________________
ssh -v -l hscroot 10.26.10.21 date
or extra verbose mode:
ssh -v -v -l hscroot 10.26.10.21 date
Edward Davignon
Lead Analyst - Distributed Systems
Utility Shared Services - IT
Energy East Corporation
-----Original Message-----
From: IBM AIX Discussion List
[mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Andrew Garnett
Sent: Monday, September 11, 2006 10:38 AM
To: aix-l@xxxxxxxxxxxxx
Subject: SSH commands to HMC
All,
I am sending hmc commands to an HMC from a UNIX
command-line using ssh.
On the first call the connection times out (see
below).
On the subsequent call (immediately afterwards) it
connects and runs OK, as do any other iterations.
If I leave it a few minutes, I'm back to a timeout
and
then it continues OK.
root@node9>ssh -l hscroot 10.26.10.21 date
ssh: connect to host 10.56.0.224 port 22: Connection
timed out
root@node9>ssh -l hscroot 10.26.10.21 date
Sun Sep 10 00:20:58 BST 2006
This is hopeless for scripting.Anyone know what
causes
it ?
All new Yahoo! Mail "The new Interface is stunning
in its simplicity and
ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
- Follow-Ups:
- Re: SSH commands to HMC
- From: Stanislav Grozev
- Re: SSH commands to HMC
- References:
- Re: SSH commands to HMC
- From: Davignon, Edward
- Re: SSH commands to HMC
- Prev by Date: Paul Oh is out of the office.
- Next by Date: Re: SSH commands to HMC
- Previous by thread: Re: SSH commands to HMC
- Next by thread: Re: SSH commands to HMC
- Index(es):
Relevant Pages
- OpenSSH 3.5p1 port forwarding problem on Solaris 2.8
... I'm trying to use port forwarding to get a SqlNet connections back thru ...
This gets a Connection refused. ... debug1: Rhosts Authentication disabled, ...
(comp.security.ssh) - UPDATE: Re: Question regarding SSH via Lantronix SCS100
... to do SSH and to authenticate the SSH connection with a local ... unexpectedly
closed connection'. ... CONSOLE or AUX port on the router, or does it matter, and what
... (comp.dcom.sys.cisco) - Re: SSH options re: NAT
... No, SSH is two-fold, a call to it on the client side results in a call ... port,
meaning that any connections that come into that port are answered ... programming practice for
daemons) Once the connection is established, ... don't want to execute a command
on the remote side and you use -N. ... (comp.security.ssh) - Help request: problems with a 5.1 server and large numbers of ssh users.
... FreeBSD 5.1 because I need to be able to support ldap authentication.) ... My
version of ssh is 3.6.1p2 patched to address the security concerns. ... debug1:
Rhosts Authentication disabled, ... debug1: Connection established. ... (freebsd-current) - Help request: problems with a 5.1 server and large numbers of ssh users.
... FreeBSD 5.1 because I need to be able to support ldap authentication.) ... My
version of ssh is 3.6.1p2 patched to address the security concerns. ... debug1:
Rhosts Authentication disabled, ... debug1: Connection established. ... (freebsd-hackers)