Linked Questions
23 questions linked to/from Shell Script for logging into a ssh server
125
votes
3
answers
661k
views
SSH login with clear text password as a parameter? [duplicate]
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 ...
6
votes
3
answers
6k
views
Taking password from a file while SSH ing into a machine [duplicate]
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 ...
3
votes
2
answers
15k
views
providing password to ssh [duplicate]
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 ...
0
votes
1
answer
20k
views
rsync over ssh without typing the password each time [duplicate]
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=...
1
vote
1
answer
6k
views
How to automatically input ssh key password? [duplicate]
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.
...
1
vote
2
answers
3k
views
how to login using ssh with password? [duplicate]
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]....
0
votes
2
answers
5k
views
How to ssh to a remote host using from within a bash script function? [duplicate]
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
...
0
votes
1
answer
2k
views
Bash script in Linux [duplicate]
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]....
0
votes
2
answers
2k
views
Automated SSH Login [duplicate]
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 ...
0
votes
1
answer
1k
views
expect script to autofill password [duplicate]
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 ...
0
votes
2
answers
518
views
Autentification on SSH connection in OneLine [duplicate]
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 ...
0
votes
1
answer
647
views
Auto login to SSH without keys? [duplicate]
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 ...
0
votes
1
answer
678
views
ssh to remote machine using shell script [duplicate]
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 ...
44
votes
4
answers
38k
views
How to enable autocompletion for remote paths when using scp?
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.
1
vote
3
answers
12k
views
Shell script for ssh into a Unix/Linux server from MacOS X 10.10
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@...