Re: ssh from a script -- can't install keys
- From: "F. Michael Orr" <michael_orr25@xxxxxxxxx>
- Date: Tue, 09 Mar 2010 10:36:17 -0600
On Mon, 08 Mar 2010 11:33:56 -0800, Bob Smith wrote:
I wonder if anyone on this group has a working script to ssh to a remote
system and execute a command.
Google turns up several suggestions but none of them seem to work. In
particular EXPECT does not work, which is a shame.
The ssh client where the script is to run is using OpenSSH 4.7.
BTW: the target device is a tape drive. I have access to a login that
takes me directly to a CLI where I need to run a few commands. I DO NOT
HAVE THE ABILITY TO INSTALL KEYS on the tape drive.
Does anyone have ssh with password authentication working from a
script???
thanks
Bob Smith
Why wouldn't expect work? That is the usual solution to this kind of
problem. Are you familiar with 'autoexpect'? You can use it to script
your ssh session to the tape drive. The result is far too specific to
run without modification, but it does give a good framework that can be
changed to be general enough to be of use.
.
- References:
- Monitor Specific EMail accounts for external logins.
- From: Woody
- Re: Monitor Specific EMail accounts for external logins.
- From: Lew Pitcher
- ssh from a script -- can't install keys
- From: Bob Smith
- Monitor Specific EMail accounts for external logins.
- Prev by Date: sudo settings to allow one user to gain shell as shared user
- Next by Date: MoCa Ethernet Adapter Security?
- Previous by thread: ssh from a script -- can't install keys
- Next by thread: Re: Monitor Specific EMail accounts for external logins.
- Index(es):
Relevant Pages
|