Unix/Linux Go Back    

BSD 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


Thread Tools Search this Thread Display Modes
Old Unix and Linux 2 Weeks Ago   -   Original Discussion by aroucasp
aroucasp's Unix or Linux Image
aroucasp aroucasp is offline
Registered User
Join Date: Mar 2018
Last Activity: 6 March 2018, 5:22 PM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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; 1 Week Ago at 04:29 AM.. Reason: Added CODE tags.
Sponsored Links
Old Unix and Linux 1 Week Ago   -   Original Discussion by aroucasp
gull04's Unix or Linux Image
gull04 gull04 is offline Forum Advisor  
Registered User
Join Date: Dec 2004
Last Activity: 12 March 2018, 10:43 PM EDT
Location: Isle-of-Skye
Posts: 752
Thanks: 19
Thanked 140 Times in 123 Posts

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?


Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh connection unstable on remote server steadyonabix Ubuntu 4 10-08-2012 08:35 AM
ssh failed to login in remote connection thecobra151 AIX 6 03-29-2011 11:53 AM
ssh connection from remote machine in solaris dddkiran Shell Programming and Scripting 4 06-17-2010 05:00 AM
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

All times are GMT -4. The time now is 01:22 AM.