Created
July 3, 2015 13:22
-
-
Save boscoworks/f8e98704dba13b568dee to your computer and use it in GitHub Desktop.
サーバにsshするときにパスワードをコマンドのオプションで渡したい ref: http://qiita.com/boscoworks/items/0f7d88eb8841d1cfaab7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install sshpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshpass -p '(パスワード)' ssh -l boscoworks 192.168.56.101 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment