Linked Questions

125 votes
3 answers
661k views

I need to login to a user that I've created on a remote host running Ubuntu. I can't use an ssh key because the ssh login will happen from a bash script ran within a server that I won't have access to ...
mmla's user avatar
  • 1,377
6 votes
3 answers
6k views

I want to SSH into a remote machine but instead of typing the password, I want to redirect it from another file. So I have a file password.txt that stores the password. File.sh is my bash file. In ...
Mahathi Vempati's user avatar
3 votes
2 answers
15k views

The situation: I have an IP : 192.168.1.1 $IP username : root (or whatever) $USER and a passwd: foo $PASSWD Is there a way to give $PASSWD to ssh ? like PASSWORD_VAR=$PASSWD ssh -l $USER $IP user ...
Archemar's user avatar
  • 32.3k
0 votes
1 answer
20k views

I got a bash script to synchronize data between two computers. It works fine but I have to type my password every time the rsync command is called. #!/bin/bash sourceIP="192.168.178.128" sourceUser=...
schmiddl's user avatar
1 vote
1 answer
6k views

We have the base64 encoded SSH key password (so not a user account password!). We have to keep an SSH tunnel opened to a place. But sometimes the connection is bad and the SSH session terminates. ...
Marina Ala's user avatar
1 vote
2 answers
3k views

I want to login using ssh and password store in a text file or may be in a varible I am trying below method but i am getting an error please suggest me correct way. echo "123456" | ssh [email protected]....
Tiger's user avatar
  • 664
0 votes
2 answers
5k views

I'm new to bash scripting. I want to call a function from my script which will ssh into a remote computer (on my LAN) and run a command. So far I have: function run_ssh_command { target_ip=$1 ...
MarkMark's user avatar
  • 603
0 votes
1 answer
2k views

I want to login to a remote system in ubuntu using a script file which will be executed in my system . The script contains the following commands #!/bin/bash echo 'systemPwd' | ssh [email protected]....
aadhithyan's user avatar
0 votes
2 answers
2k views

Possible Duplicate: Shell Script for logging into a ssh server Autentification on SSH connection in OneLine How could I make a SSH Login programmatically on a unix server, I don't have rights ...
fers's user avatar
  • 59
0 votes
1 answer
1k views

Im struggling with how to do things. My goal is that when in on my jumphost type ssh router1, then it will ssh to the router, and at the same time run an expect script to fill in my password from a ...
Mikkel Gottlieb's user avatar
0 votes
2 answers
518 views

Possible Duplicate: Shell Script for logging into a ssh server I need to connect via SSH to a remote server, however I must do this with out interactive mode and with out use Public keys and also ...
fers's user avatar
  • 59
0 votes
1 answer
647 views

I am looking for a way to ssh to a machine, without using SSH keys. When I try to pass the password echo "password" | ssh user@machine It just gives me an stdin error How do I SSH without using ...
dirhere's user avatar
0 votes
1 answer
678 views

I want to ssh to remote machine within shell script but remote machine require password. How should i provide password in my script? I tried below but its not working. Please suggest #!/bin/bash SSH ...
preetam's user avatar
44 votes
4 answers
38k views

I remote copied a file to my laptop using: scp someFile [email protected]:/home/USER/put/it/some/where/oh/damn/you/here I want to be able to autocomplete the remote path by hitting tab.
k0pernikus's user avatar
  • 16.7k
1 vote
3 answers
12k views

I am attempting to ssh into a server by using a bash script from MacOSX. #!/bin/bash spawn ssh username@gatewayserver expect "password" send "Mypassword\r" interact spawn ssh username@...
Charles Butler's user avatar

15 30 50 per page