mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt ssh
This commit is contained in:
parent
5c704512e1
commit
59d84f9033
@ -68,7 +68,7 @@ func _cat_find(m *ice.Message, name string) io.ReadCloser {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func _cat_list(m *ice.Message, name string) {
|
func _cat_list(m *ice.Message, name string) {
|
||||||
if !_cat_right(m, name) {
|
if m.Warn(!_cat_right(m, name), ice.ErrNotRight) {
|
||||||
return // 没有权限
|
return // 没有权限
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -169,6 +169,7 @@ func init() {
|
|||||||
})
|
})
|
||||||
}},
|
}},
|
||||||
tcp.OPEN: {Name: "open authfile username=shy password verfiy host=shylinux.com port=22 private=.ssh/id_rsa", Help: "终端", Hand: func(m *ice.Message, arg ...string) {
|
tcp.OPEN: {Name: "open authfile username=shy password verfiy host=shylinux.com port=22 private=.ssh/id_rsa", Help: "终端", Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
aaa.UserRoot(m)
|
||||||
_ssh_open(m.OptionLoad(m.Option("authfile")), arg...)
|
_ssh_open(m.OptionLoad(m.Option("authfile")), arg...)
|
||||||
m.Echo("exit %v@%v:%v\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT))
|
m.Echo("exit %v@%v:%v\n", m.Option(aaa.USERNAME), m.Option(tcp.HOST), m.Option(tcp.PORT))
|
||||||
}},
|
}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user