09-24-2007
run ssh command with -vv flag to see more verbose sessions, and also try -t and -T options, they are for pseudo-tty allocation.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to install ypbind and yp-tools on over two-hundred remote client machines based on their redhat version. I have a centralized server on which I created an ssh public key. I then transfered the ssh public key to the authorized_keys file on all the remote hosts; therefore, I can login without... (1 Reply)
Discussion started by: cstovall
1 Replies
2. Shell Programming and Scripting
Hello all,
I have a relatively simple script I wrote to generate a count of errors broken down. What I would like to do is execute this script from another server so that I don't actually have to log in to the server to run the check.
The script on what we'll call "Server A" is:
... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
3. Shell Programming and Scripting
How can i ssh into a remote system using ssh command in a shell script with password?
I havent used password less authentication for the remote system.
Thanks and Regards,
Rupaa (4 Replies)
Discussion started by: Rupaa
4 Replies
4. Solaris
how to login with ssh to remote system with out applying the remote root/user password
with rlogin we can ujse .rhosts file
but with ssh howits possible
plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies
5. Shell Programming and Scripting
Hi all,
Scenario - trying to run a batch job on a second machine.
DIR=directory
user=user
server=server
Here is what i have- ssh user@server 'sleep2; cd $DIR; <jobname>'
I have got access to the correct directory, i checked with a pwd command previous.
Problem is the job i... (1 Reply)
Discussion started by: Hopper_no1
1 Replies
6. Shell Programming and Scripting
I am running a useradd script, which works locally but I want to take some of that local information and send it to a remote system, ssh keys are set up between the two systems. I am attaching the script, look at the section titled
"Sending information to FTP2"
Removed attachment, added... (0 Replies)
Discussion started by: slufoot80
0 Replies
7. Shell Programming and Scripting
Hi, I've an issue in a shell script:
I'm opening an ssh connection to a remote server, then I want to store the result of a ls command in a variable, but it doesn't work: the ls is done on the local machine.
ssh user@server << EOF
ls # works as expected (ls is done remotely)
test=`ls` # the... (1 Reply)
Discussion started by: seloum57
1 Replies
8. Shell Programming and Scripting
Hello,
I'm trying to create a ksh script to ssh to a remote server, enter the password and a couple commands. For security reasons I have changed the login, password and ip in my example.
#!/bin/ksh
ssh -t -t username@12.5.5.3 << EOF
password
cd bin
pwd
EOF
When I run it. It... (5 Replies)
Discussion started by: seekryts15
5 Replies
9. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
10. Shell Programming and Scripting
*Following questions involves use of YAML, BASH, SSH and Software called Ansible*
I am trying to learn how to use a Linux environment (in my case a Ubuntu Windows Sub System) to copy a text file from my files to a remote instance (in this case Amazon Web Services) by connecting via SSH.
I... (8 Replies)
Discussion started by: Suhaba
8 Replies
LEARN ABOUT DEBIAN
inputkill
inputkill(1) General Commands Manual inputkill(1)
NAME
inputkill - run a command until standard input is closed
SYNOPSIS
inputkill [options] <command> [arguments ...]
DESCRIPTION
inputkill runs a given command until standard input is closed. inputkill passes on all file descriptors except for standard input; command
is given no standard input.
inputkill is useful for promptly exiting a program ran via ssh when the connection is closed. For example, ssh host inputkill sleep 60 runs
the command sleep on the computer named host until either sixty seconds elapse or the ssh connection is terminated.
The argument "--" disables argument parsing for all proceeding arguments; e.g. "inputkill ls -l" will pass "-l" to inputkill and run "ls",
whereas "inputkill -- ls -l" will run "ls -l".
OPTIONS
-V, --version
Display version information.
-?, --help
Display a summary of command line options.
SEE ALSO
ssh(1), rsh(1)
inputkill is part of mswatch(1); mswatch website: http://mswatch.sf.net/
AUTHOR
Written by Chris Frost <chris@frostnet.net>.
inputkill(1)