Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ip=aa.bb.cc.dd #replace with your unix server's ip
- username=yyyyyyyyyy #your ssh username
- password=xxxxxxxxxxxxxxxxx #your ssh password
- command=ssh -D 2002 #what do you want to do with remote server
- arguments=-Cq #arguments for your command
- expect -c 'spawn ssh $username@$ip ; expect password ; send "$passwordn" ; interact'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement