Skip to content

Instantly share code, notes, and snippets.

@chenyanzhe
Created January 27, 2014 02:42
Show Gist options
  • Save chenyanzhe/8642533 to your computer and use it in GitHub Desktop.
Save chenyanzhe/8642533 to your computer and use it in GitHub Desktop.
password-less ssh for koding vm
#!/usr/bin/expect -f
set password <password>
set timeout -1
spawn ssh vm-0.<username>.koding.kd.io
expect "*?assword*"
send -- "$password\r"
interact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment