Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Scalingo/go-ssh-examples
Go examples of SSH servers and clients
https://github.com/Scalingo/go-ssh-examples
Last synced: about 2 months ago
JSON representation
Go examples of SSH servers and clients
- Host: GitHub
- URL: https://github.com/Scalingo/go-ssh-examples
- Owner: Scalingo
- License: bsd-2-clause
- Archived: true
- Created: 2014-12-05T14:48:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-06-23T08:02:11.000Z (over 1 year ago)
- Last Synced: 2024-06-20T13:30:44.730Z (3 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 282
- Watchers: 13
- Forks: 66
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# /!\ This repository is unmaintained
# SSH Client/Server example with Go
## Initialization
To setup a SSH server, a host ssh keypair (usually RSA) has to be created, to do so, run:
```
bash init.sh
```Those files should have been created in the project directory:
* `./host_key`
* `./host_key.pub`## Simple client usage
```
go run client.go
```Example:
```
└> go run client.go foobar example.com:22 'ls /'
Password: *********
bin
boot
conf.d
dev
etc
home
initrd.img
lib
lib64
lost+found
media
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
var
vmlinuz
```### Notes:
Please create issues, if you want more details.