Yes.
ssh - it's interactive logon to system.
so, your script connected to server and waiting *your* actions.
if you want using script you should using some-thing like
Hi,
I am trying to ssh/rlogin onto another box through a script. What is the syntax so I do not get prompted for a password.
Thanks in advance (3 Replies)
Hi ssh has now been set up to not prompt for a password. My problem is I have the script below that I wish.
Firstly ssh onto another box and then run the rest of the script problem I am not sure of the syntax.
#!/bin/ksh
. ${ENV}/oracle_env.ksh
****I WANT TO SSH AT THIS POINT AND... (2 Replies)
I want to use ssh through a script without setting key pair in those two machines.
I ll take the password as input from user and then run some commands on remote machine. Can someone help me on how to do it (1 Reply)
So, right now I'm trying to make an SSH script for my place of employment. This script, I want to go out to the server hostnames we have specified (in another file) and change a users account password. We use Kerberized telnet, so if telnet root hostname fails, I want it to use ssh usernamehostname... (1 Reply)
Hey Guys,
I want to have a bash script on my computer (Mac OS X 10.6.8) that can ssh into my iPod and respring. I know how do this by typing in "ssh root@10.0.1.10" and then typing in the password "alpine". From there i simply type "respring". I want to possibly put this into a shell script so it... (0 Replies)
Hello,
I am writing a shell script in which i do ssh to remote server and count the number of files there and then exit. After the exit the shell script terminates which i believe is expected behavior. Can some one suggest me a way where even after the exit the script execution resumes.
... (2 Replies)
I am connecting to a remote server using this ssh command:
ssh -p 2222 username@***.***.***.***
I then get a password prompt where I enter the password. I need to make an ssh connection using a script instead of doing it manually. How can I automate the connection process and make the... (2 Replies)
The below command executing manually from server01. It will ask the password and retrieves the result(total number of characters in a filename.txt file available in server02)
(username@server01)$ ssh username@server02 wc -c /log/filename.txt
username@server02's password:
25500... (1 Reply)
Dear All,
I have a requirement where I have to SFTP or SCP a file in a batch script. Unfortunately, the destination server setup is such that it doesn't allow for shell command line login. So, I am not able to set up SSH keys. My source server is having issues with Expect. So, unable to use... (5 Replies)
Hi,
I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not...
I have .sh script like below and i have servers.txt contains all the list of servers
#/bin/bash
for host in $(cat... (3 Replies)