go-ssh-examples

Go examples of SSH servers and clients

  • 所有者: Scalingo/go-ssh-examples
  • 平台:
  • 许可证: BSD 2-Clause "Simplified" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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 <user> <server:port> <command>

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.

主要指标

概览
名称与所有者Scalingo/go-ssh-examples
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2014-12-05 14:48:45
推送于2023-06-23 08:02:11
最后一次提交2023-06-23 10:02:11
发布数0
用户参与
星数284
关注者数12
派生数66
提交数15
已启用问题?
问题数10
打开的问题数6
拉请求数2
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?