Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vimiix opened this issue Jan 30, 2024 · 0 comments
Open

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

vimiix opened this issue Jan 30, 2024 · 0 comments
Labels

Comments

@vimiix
Copy link
Owner

vimiix commented Jan 30, 2024

为所有的机器添加 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 vimiix pinned this issue Feb 2, 2024
@github-actions github-actions bot added the stale label Jun 11, 2024
@vimiix vimiix added pined and removed stale labels Jun 11, 2024
Repository owner deleted a comment from github-actions bot Jun 12, 2024
@vimiix vimiix changed the title [扩展]ssx 相关的shell命令 [Extension] Some shell commands that might be useful to you Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant