How Do I Use Sshpass in Linux?
Contents What Does Sshpass Do in Linux? What Is Sshpass? the Sshpass Utility Is Designed to Run Ssh Using the Keyboard-Interactive Password Authentication...
Contents
What does Sshpass do in Linux?
What is sshpass? The sshpass utility is designed to run SSH using the keyboard-interactive password authentication mode, but in a non-interactive way. SSH uses direct TTY access to ensure that the password is indeed issued by an interactive keyboard user.
Must Read
How do I SSH a password in Linux?
Method
- If you have not done so already, enable SSH. See How to enable SSH access for details.
- Log in to your server with SSH.
- Enter the command: passwd.
- Type your password, then press Enter.
- When prompted for your current UNIX password, enter your SSH password, then press Enter.
- Retype your new password and press enter.