Home Man
Today's Posts

BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

Connection SSH to remote by ssh

👤 Login to reply

Thread Tools Search this Thread
# 1  
Old 03-06-2018
Connection SSH to remote by ssh

Hello guys!

I am setting up a script to access a unix remote server. My problem is that when I put the ssh line "my host", the script does not wait for the server response asking for the password to execute the line in which I put the password, that is, I need to put a form in which script has a confirmation of first line before executing the second line.

My script

sh "my host"
"My password"

Moderator's Comments:
Connection SSH to remote by ssh Please use CODE tags as required by forum rules!

Last edited by RudiC; 03-07-2018 at 04:29 AM.. Reason: Added CODE tags.
# 2  
Old 03-07-2018

Do you want the script to open an interactive shell for you, or should it remotely execute something.

Can you show us what you have tried so far?


👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ssh to validate multiple remote hosts connection validation. sadique.manzar Shell Programming and Scripting 9 02-19-2018 07:13 AM
ssh connection unstable on remote server steadyonabix Ubuntu 4 10-08-2012 08:35 AM
How to automate SSH remote connection with a shell script pinpe Shell Programming and Scripting 3 08-17-2011 07:54 AM
ssh failed to login in remote connection thecobra151 AIX 6 03-29-2011 11:53 AM
Unable to SSH into machine - ssh_exchange_identification: Connection closed by remote host jaapar Red Hat 3 09-26-2010 07:48 AM
ssh connection from remote machine in solaris dddkiran Shell Programming and Scripting 4 06-17-2010 05:00 AM
check ssh connection to remote host praveenbvarrier Shell Programming and Scripting 6 10-06-2008 12:46 PM
Remote SSH Connection Using Script ajith_tg Shell Programming and Scripting 1 07-21-2005 10:42 AM
Remote Connection (SSH) RishiPahuja Shell Programming and Scripting 11 06-26-2005 11:02 AM
Solaris 9 remote login (ssh) drops connection ahmerin UNIX for Advanced & Expert Users 2 01-15-2005 07:02 AM

All times are GMT -4. The time now is 05:12 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password