MyGit

FeeiCN/autossh

Fork: 129 Star: 351 (更新于 2024-11-28 17:41:13)

license: 暂无

Language: Shell .

Password-free automatic login SSH(免密登陆SSH)

最后发布版本: 1.0 ( 2015-06-09 20:45:38)

GitHub网址

AutoSSH

Auto Login SSH Server (expect-based)

Install Dependencies

Linux
yum install expect
apt-get install expect

Install AutoSSH

$ git clone https://github.com/FeeiCN/autossh.git
$ sudo cp autossh/autossh /usr/local/bin/

Config

$ cat ~/.autosshrc
server_name|192.168.1.110|root|password|port|is_bastion

Example

$ cat ~/.autosshrc
wufeifei|192.168.1.1|root|password|22|1

Usage

$ autossh
############################################################
#                     [AUTO SSH]                           #
#                                                          #
#                                                          #
# [1] 192.168.1.110:feei                                   #
# [2] 10.11.2.103:root                                     #
# [3] 103.21.140.84:root                                   #
#                                                          #
#                                                          #
############################################################
Server Number:(Input Server Num)

OR

$ autossh 1

OR Auto Sudo

$ autossh 3 sudo

OR Bastion Host

$ autossh 1 10.12.0.123

OR Auto Sudo With Bastion(JumpServer)

$ autossh 1 10.11.0.123 sudo

Reference

最近版本更新:(数据更新于 2024-09-21 21:46:28)

2015-06-09 20:45:38 1.0

主题(topics):

jumpserver, ssh, ssh-client, ssh-manager

FeeiCN/autossh同语言 Shell最近更新仓库

2024-12-24 00:14:20 j-hc/revanced-magisk-module

2024-12-19 20:39:10 chenzyadb/CuprumTurbo-Scheduler

2024-12-17 15:17:35 morytyann/OpenWrt-mihomo

2024-12-11 20:57:35 RROrg/rr

2024-12-09 01:05:08 rustdesk/rustdesk-server-pro

2024-12-03 19:14:14 dockur/windows