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 Display Modes
Old 03-06-2018
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; 03-07-2018 at 04:29 AM.. Reason: Added CODE tags.
Sponsored Links
Old 03-07-2018
gull04 gull04 is offline Forum Advisor  
Registered User
Join Date: Dec 2004
Last Activity: 10 July 2018, 5:47 AM EDT
Location: Isle-of-Skye
Posts: 765
Thanks: 21
Thanked 144 Times in 126 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
👤 Login to reply

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 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 10:44 PM.

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

Not a Forum Member?
Forgot Password?