Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/FeeiCN/autossh
Password-free automatic login SSH(免密登陆SSH)
https://github.com/FeeiCN/autossh
jumpserver ssh ssh-client ssh-manager
Last synced: 3 months ago
JSON representation
Password-free automatic login SSH(免密登陆SSH)
- Host: GitHub
- URL: https://github.com/FeeiCN/autossh
- Owner: FeeiCN
- Archived: true
- Created: 2015-06-09T04:46:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T03:13:55.000Z (almost 5 years ago)
- Last Synced: 2024-05-15T13:41:41.943Z (6 months ago)
- Topics: jumpserver, ssh, ssh-client, ssh-manager
- Language: Shell
- Homepage:
- Size: 17.6 KB
- Stars: 349
- Watchers: 18
- Forks: 130
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
$ cat ~/.autosshrc
server_name|192.168.1.110|root|password|port|is_bastion
```# Example
```bash
$ 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
- [免密登陆SSH](http://feei.cn/免密登陆SSH)