为所有的机器添加 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
获取服务器的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
为所有的机器添加
hostname的标签 (v0.0.6+)Add a 'hostname' label to all machines
查看某个服务器的信息 (v0.0.7+)
View information about a server
获取服务器的IP(v0.0.7+ ,配合 jq 工具)
Obtain the IP address of the server
使用跳板机登录目标服务器(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