Created
April 15, 2021 02:55
-
-
Save TimorYang/ac3b30c3b2eee9866fad060101246eed to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/expect | |
spawn ssh-add /Users/admin/.ssh/cbd_rsa | |
expect "Enter passphrase for /Users/admin/.ssh/cbd_rsa:" | |
send "123456\n"; | |
expect "Identity added: /Users/admin/.ssh/cbd_rsa ([email protected])" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment