add passphrase to ssh agent?
#!/usr/bin/expect -f
spawn ssh-add /home/user/.ssh/id_rsa
expect "Enter passphrase for /home/user/.ssh/id_rsa:"
send "passphrase\n";
expect "Identity added: /home/user/.ssh/id_rsa (/home/user/.ssh/id_rsa)"
interact
#!/usr/local/bin/expect
spawn sftp -b cmdFile [email protected]
expect "password:"
send "shhh!\n";
interact
Also in Shell:
- linux check ubuntu version
- apache .htaccess Option ubuntu
- git undo rebase
- change git remote
- git see tags
- linux how to see directory data usage
- how to commit changes in git command
- bash rename
- npm install react
- laravel make migration
- remove git tag
- git commit ignore eslint
- bash compare two strings
- delete directory linux
- linux unzip with password
- install gulp gulp-util exited with code 1
- compress folder ubuntu
- git checkout someone else's branch
- instalación de angular cli
- git find when file was deleted
- tree process linux commnad
- rustup
- ubuntu install apache2
- add passphrase to ssh agent?