How To Install SSHPass For login To SSH Server In Linux

How To Install SSHPass a utility for tuning server using the mode referred to “Keyboard interactive “password authentication where you can give password with a command, ssh-copy-id permission denied and sshpass command not found. you can also use ssh-copy-id without a password. you can also define a password with ssh to login the machine.

Check Out: Create SSh Key in Linux

By default, SSHPass not installed on Linux. You need to install it to work. Just write sshpass to find the sshpass package either installed or not, but you shouldn’t use this command because it’s a security risk because you’re defining the password of the user.

How To Install SSHPass For login To SSH Server:

Here, you can use the ssh key to login without a password in the Linux machine and you should not allow access to root users directly.

Check Out: How To Configure Samba Server For File Sharing

That’s mean sshpass not installed. You need to install it from epel repo.

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -ivh epel-release-latest-7.noarch.rpm

Check Out: SSH Password less login Using SSH Keygen

ssh permission denied

Else

yum install epel-release-latest-7.noarch.rpm -y

Package name : sshpass-1.06-1.el7.x86_64

Now login with sshpass to a remote server

Check Out: Disable SSH For Root Login

sshpass -vpcentos ssh root@192.168.185.146

ssh-copy-id without password

You’re done ssh-copy-id without password define password with ssh sshpass command not found ssh-copy-id permission denied

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment