Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. bastion=xyz.com
  2. user=$( whoami )
  3.  
  4. function doSSH () {
  5.  
  6. ssh $user@$bastion -t -A
  7. -L 5900:127.0.0.1:5900
  8. ssh $user@$1 -t -A
  9. -L 5900:127.0.0.1:5900
  10. /opt/enableVNC
  11. }
  12.  
  13. $ doSSH node1
  14. user@bastion's password:
  15. user@node1's password:
  16. hi
  17. Connection to node1 closed.
  18. <hang>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement