dokku/sshcommand là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng Shell, với 387 sao. Turn SSH into a thin client specifically for your app
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Simplifies running a single command over SSH, and manages authorized keys (ACL) and users in order to do so.
It basically simplifies running:
ssh user@server 'ls -l <your-args>'
into:
ssh ls@server <your-args>
Commands
sshcommand create <USER> <COMMAND> # Creates a local system user and installs sshcommand skeleton
sshcommand acl-add <USER> <NAME> <KEY_FILE> # Adds named SSH key to user from STDIN or argument
sshcommand acl-remove <USER> <NAME> # Removes SSH key by name
sshcommand acl-remove-by-fingerprint <USER> <FINGERPRINT> # Removes SSH key by fingerprint
sshcommand list <USER> [<NAME>] [<OUTPUT_TYPE>] # Lists SSH keys by user, an optional name and a optional output format (JSON)
sshcommand help <COMMAND> # Shows help information
sshcommand version # Shows version
Example
On a server, create a new command user:
sshcommand create cmd /path/to/command
On your computer, add authorized keys with your key:
Now anywhere with the private key you can easily run:
ssh cmd@server
Anything you pass as the command string will be appended to the command. You can use this
to pass arguments or if your command takes subcommands, expose those subcommands easily.
/path/to/command subcommand
Can be run remotely with:
ssh cmd@server subcommand
When adding an authorized key, you can also specify custom options for AUTHORIZED_KEYS
by specifying the SSHCOMMAND_ALLOWED_KEYS environment variable. This should be a list
of comma-separated options. The default keys are as follows:
This can be useful for cases where the ssh server does not allow certain options or you
wish to further constrain a user's environment. Please see man sshd for more information.
Existing keys can be listed via the list subcommand:
# in text format
sshcommand list cmd
# filter by a particular name
sshcommand list cmd progrium
# in json format
sshcommand list cmd "" json
# with name filtering
sshcommand list cmd progrium json
# ignore validation errors (though they will be printed to stderr)
export SSHCOMMAND_IGNORE_LIST_WARNINGS=true
sshcommand list cmd
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/dokku/sshcommand là nguồn chính thức.
dokku/sshcommand có phải mã nguồn mở không?
Có — dokku/sshcommand phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/dokku/sshcommand.
dokku/sshcommand là gì?
dokku/sshcommand (dokku/sshcommand) là dự án Shell trên GitHub. Theo mô tả gốc: Turn SSH into a thin client specifically for your app
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về sshcommand?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về sshcommand.