ssx icon indicating copy to clipboard operation
ssx copied to clipboard

[Extension] Some shell commands that might be useful to you

Open vimiix opened this issue 1 year ago • 0 comments

为所有的机器添加 hostname 的标签 (v0.0.6+)

Add a 'hostname' label to all machines

ssx list | grep -E '\s\d' | awk '{print $1}' | xargs -I id sh -c 'ssx -i id -c hostname|xargs ssx tag -i id -t '

查看某个服务器的信息 (v0.0.7+)

View information about a server

ssx info -i <ID>

获取服务器的IP(v0.0.7+ ,配合 jq 工具)

Obtain the IP address of the server

ssx info -i <ID> | jq .host

使用跳板机登录目标服务器(v0.2.0+)

Log in to the target server using the jump server

ssx -J [proxy_user@]proxy_host[:proxy_port] [user@]host[:port]

# multiple hops:
ssx -J address1,address2,...  target_address

vimiix avatar Jan 30 '24 09:01 vimiix