Questions tagged [sshpass]
The sshpass tag has no summary.
55 questions
0
votes
2
answers
2k
views
E: Package 'sshpass' has no installation candidate(not able to install sshpass in linux)
sudo apt-get install sshpass
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package sshpass is not available, but is referred to by another package. ...
0
votes
2
answers
404
views
Running a while loop on remote server using heredoc
I am trying to run below script on remote machine, I am facing two issues here
The while loop defined in here doc is running endless
read enter key does not work on remote host
Without the sshpass ...
0
votes
0
answers
478
views
Run a docker container in a new interactive terminal with sshpass!
I'm trying to run a Docker container in a new interactive terminal with sshpass. I've found that:
gnome-terminal --tab -- sh -c \
"sshpass -p "password" ssh name@ip -t 'bash -ic docker ...
0
votes
0
answers
2k
views
sshpass No such file or directory
need add string to file on remote ssh server without prompting sudo password
myuser=testuser
$ sshpass -p "$mypass" ssh -t -o StrictHostKeycheking=no $myuser@$myhost "echo $mypass | ...
1
vote
2
answers
2k
views
Using sshpass with rsync to accept a fingerprint
I'm using rsync to copy a file to a device:
sshpass -p <password> rsync -avzP <file> <user>@<IP address>:<folder>
This has worked fine in the past but I was trying to ...
1
vote
1
answer
94
views
Saving the output of find to a variable in a remote server
# Declare the array
declare -a LC_lines
# Read the lines of the file into the array
readarray -t LC_lines < unique_running_jobs_directory.log
sshpass -p password ssh -n [email protected] &...
0
votes
1
answer
945
views
How to download root user owned files via scp or rsync as a sudo user?
How to download the file which requires root permission from a remote server (via scp or rsync) as a sudo-user (non-interactive way)?
Note that this sudo-user is not configured to not require the ...
-1
votes
1
answer
4k
views
Non-interactive way to connect via SSH (possible options)
I am trying to create a generic bash script to connect to the remote server via SSH using a non-interactive approach (using sshpass). All I need to know is the possible way to connect via SSH.
So far, ...
1
vote
2
answers
3k
views
Rocky 8.5 - Alternate repo for sshpass, removed from EPEL
BACKGROUND:
I am developing a Kickstart file to install Rocky (8.5), and I have included EPEL as a repo in order to install Ansible. Yesterday, when trying to install from my Kickstart file, I ...
4
votes
1
answer
14k
views
"ssh" works but "sshpass" doesn't - how is this possible?
I configured key pairs for SSH connection.
It works but of course asks for the passphrase.
ssh [email protected]
So now I try to login with sshpass which I have installed. I tried with -p property ...
3
votes
2
answers
2k
views
Using sshpass in Cygwin, ssh stills prompts for password
According to this RedHat SSH password automation guide I'm following the Example 4: GPG one, and following the steps in that guide I create my pass_file using my own passphrase. Then, I got this:
gpg -...
0
votes
2
answers
2k
views
sshpass splitting the password as two strings seperated by the character "&" in password
I have a password variable PASS whose value is abc123&zxcv456 When I try to do SSH in jenkins using the password variable like below
sshpass -p ${PASS} ssh -o StrictHostKeyChecking=no admin@100....
3
votes
1
answer
3k
views
SSH Tunnel with automatic reconnect and password auth in Docker container
I want to forward a Socks5 proxy using SSH with password authentication inside a Docker container. YES, I know that SSH keys would be better. But since it's not my own server, I'm not able to use keys,...
-1
votes
1
answer
1k
views
sshpass with sftp not working from crontab?
I have a ssh script (for testing purpose) that I can run successfully from cmd:
#!/bin/bash
/usr/bin/sshpass -p 'password' /usr/bin/sftp user@host:/out/test/ <<< $'put -r /data/test/*'
A ./...
3
votes
1
answer
652
views
sshpass through regular ssh client
I am using an application that uses /usr/bin/ssh and requires passwordless authentication. Meanwhile I want to use this with a server that requires both publickey and password authentication at the ...