Host sydeny-jump
HostName 5.6.7.8
User usera
#cmd_login nsu
#word usera_password_without_empty_space
#word cmd_nsu_password_without_empty_space
Host sydeny-jump2
HostName 5.6.7.9
User usr2
IdentityFile /home/user/ssh_rsa
#cmd sudo su -
#word sudo_su_password_without_empty_space
mkdir sydeny
1.connect to the terminal without password
- if you on the sydeny folder, lazycon will combine dirname+ parameters ,say :sydney-jump,so 1 & 2 are same
lazycon.sh jump
- if you not in sydeny folder.
lazycon.sh sydney-jump
3.open a ssh tunnel without password
lazycon.sh jump -p 1433:sql-hostname:1433
4.upload file to /var/tmp
lazycon.sh jump -f file_to_upload
5.download file to local dir
lazycon.sh jump -d full_file_path_to_download