Skip to content

auto input password or login command when ssh key/passwordless login disabled

Notifications You must be signed in to change notification settings

metalbreeze/lazycon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

How to config

1.config /your/home/.ssh/config file as following

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

2.make a dir which named sydeny

mkdir sydeny

How to use:

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

About

auto input password or login command when ssh key/passwordless login disabled

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages