Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

FeeiCN/autossh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

37 Commits

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

Languages

AltStyle によって変換されたページ (->オリジナル) /