Skip to content

SSH auto login without password and managing hosts list on Mac OSX & Linux, to instead some parts of SecureCRT.

Notifications You must be signed in to change notification settings

orangle/ssh-auto-login-for-macos

 
 

Repository files navigation

ssh-auto-login-manage

SSH auto login without password and managing ssh hosts list on Mac OSX & Linux.

You can use these scripts instead of SecureCRT, xshell.

Refer to ssh-auto-login and sshgo.

!just support python2.7.x now!! python2.7, 3.6下都能使用,只依赖标准库

How to use

  1. git clone https://github.com/orangle/ssh-auto-login-for-macos.git

  2. Modify file /path/to/ssh-auto-login-manage/hosts.example to /path/to/ssh-auto-login-manage/hosts, use your hosts, you can set the special username & password for each hostname, split with blankspace. Will use the default username & password that defined in the /path/to/ssh-auto-login-manage/login.sh file if the hostname without username & password :

    deploy
        1.1.1.0  user1  password1
        1.1.1.1
        3.3.3.3  user2
        cn-bj-office|4.4.4.4:2509 user3 password3
    Online
        login1.gateway.net user3 password3
        login2.gateway.net
    
  • support key login(when the password set empty)
  • support custom port number
  • support alias name, using | as separator
  1. Modify file /path/to/ssh-auto-login-manage/login.sh, use your own default username and password for hostname that not set in hosts file:
  • user="admin"
  • password="admin123456"
  1. Run script sshgo, or you can alias sshgo command, add the line to the end of ~/.bash_profile and source it:
  • alias sshgo='/path/to/ssh-auto-login-manage/sshgo'
  1. enjoy the sshgo.

screenshot

screenshot


说明

  • ssh免密码自动登录和主机管理,可以替代SecureCRT的自动登录。

  • Mac下的term功能较弱,无法提供像SecureCRT那样方便的主机管理和自动登录功能。在网上找到用expect做自动登录的项目ssh-auto-login,和一个用python写的主机管理界面,于是把两个工程合并在一起,就是现在这个工程了。

  • 参考了 ssh-auto-login and sshgo

About

SSH auto login without password and managing hosts list on Mac OSX & Linux, to instead some parts of SecureCRT.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.1%
  • Shell 1.9%