05-30-2011
I would suggest to use keys authentication , instead of fighting expect scripts .
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Normally, we give ip address to login with ssh like ssh 172.168.0.1
And we can give login name to ssh like ssh -l root 172.10.0.21
Then the shell asks the password, we enter the password and login to the system.
While using the script file, we are not able to supply the password to... (5 Replies)
Discussion started by: pcsaji
5 Replies
2. UNIX for Advanced & Expert Users
Greetings all,
I'm in the midst of writing a login component for a series of shell scripts. What my login script does is this:
1. Prompt for username and read in username
2. Prompt for destination host and read in destination host
3. run ssh username and destination host
4. After user keys... (0 Replies)
Discussion started by: rockysfr
0 Replies
3. UNIX for Advanced & Expert Users
Greetings all,
I'll just like to know if it is possible to launch a shell script automatically upon a user's successful login into ssh from a remote host, without adding a command parameter to the ssh command...
ie. after keying in ssh username@host (not ssh username@host "command") and upon... (1 Reply)
Discussion started by: rockysfr
1 Replies
4. Shell Programming and Scripting
hi.
I need a bash script which can login to an other mashin via SSH and then run some commands and then return the result to my mashine.
I dont know where to begin, I think first I will need a ssh connection, dont know how to make it,
then , do I need a ftp connection between the 2 mashins to... (5 Replies)
Discussion started by: big_pil
5 Replies
5. Shell Programming and Scripting
hello
anyone have done ssh login script without "expect"
(automatic login from host A / user b to Host B / user b without enter any passwords)?
cheers (2 Replies)
Discussion started by: modcan
2 Replies
6. Shell Programming and Scripting
I want to login to server using ssh or telnet and execute one command then exit to the shell
Please let me know how to write script for this? (1 Reply)
Discussion started by: svenkatareddy
1 Replies
7. Shell Programming and Scripting
I'm trying to write a login script to ssh into a cisco switch that will run some command remotely. Similar to this expect script located here:
SSH login expect shell script to supply username and password
However, that script does not work with cisco ios. Anyway know what the best way to... (1 Reply)
Discussion started by: streetfighter2
1 Replies
8. HP-UX
why I can login by telnet using root account
but when i use login by ssh using root account
it is not successful ,is it different password
i am sure ssh service is started (2 Replies)
Discussion started by: alert0919
2 Replies
9. Shell Programming and Scripting
how can i use an expect script to do a passwordless ssh login and run a script on a bunch of remote hosts? I do not want to use public key authentication as this would require me to setup the keys on the clients etc.... (2 Replies)
Discussion started by: tdubb123
2 Replies
10. Shell Programming and Scripting
Hello everyone.
I'm a Linux novice trying out a lot of bash scripting lately, as it is so very addictive.
Lately I have been setting up one of my boxes remotely and have been hardening it as much as possible. Please allow me to explain the scenario, as it does tend to become a little... (1 Reply)
Discussion started by: instro
1 Replies
LEARN ABOUT DEBIAN
fence_egenera
fence_egenera(8) System Manager's Manual fence_egenera(8)
NAME
fence_egenera - I/O Fencing agent for the Egenera BladeFrame
SYNOPSIS
fence_egenera [OPTION]...
DESCRIPTION
fence_egenera is an I/O Fencing agent which can be used with the Egenera BladeFrame. It logs into a control blade (cserver) via ssh and
operates on a processing blade (pserver) identified by the pserver name and the logical process area network (LPAN) that it is in.
fence_egenera requires that ssh keys have been setup so that the fence_egenera does not require a password to authenticate. Refer to
ssh(8) for more information on setting up ssh keys.
fence_egenera accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent.
fence_egenera can also be run by itself with command line options.
Vendor URL: http://www.egenera.com
OPTIONS
-c cserver
The cserver to ssh to. cserver can be in the form user@hostname to specify a different user to login as.
-u user
Login name. Default login name is 'root'
-h Print out a help message describing available options, then exit.
-l lpan
the lpan to operate on
-o action
The action required. reboot (default), off, on or status.
-p pserver
the pserver to operate on
-f seconds
Wait X seconds before fencing is started
-q quite mode. suppress output.
-V Print out a version message, then exit.
STDIN PARAMETERS
action = < param >
The action required. reboot (default), off, on or status.
user = < param >
Login name. Default login name is 'root'
agent = < param >
This option is used by fence_node(8) and is ignored by fence_apc.
cserver = < param >
The cserver to ssh to. cserver can be in the form user@hostname to specify a different user to login as.
lpan = < param >
The lpan to operate on
pserver = < param >
The pserver to operate on
esh = < param >
The path to the esh command on the cserver (default is /opt/panmgr/bin/esh)
delay = < param >
Wait X seconds before fencing is started
SEE ALSO
fence(8), fence_node(8), ssh(8)
fence_egenera(8)