پرش به مطلب اصلی

arianet ssh

این مرجع در هر نسخه به طور خودکار از راهنمای خود CLI ساخته می‌شود، پس همیشه با آخرین نسخه arianet یکی است. متن راهنمای هر دستور همان متن انگلیسی است که arianet <command> --help نشان می‌دهد. برای نصب، تنظیم توکن و شروع کار، صفحه رابط خط فرمان را ببینید.

فلگ‌های سراسری با همه دستورهای این صفحه کار می‌کنند.

arianet ssh​

Manage SSH keys

نحوه استفاده

arianet ssh <command>

نام‌های دیگر: ssh-key, ssh-keys

زیردستورها

  • add: Add an SSH key
  • delete: Delete an SSH key
  • get: Get details of an SSH key
  • list: List your SSH keys
  • update: Update an SSH key

arianet ssh add​

Add an SSH key

نحوه استفاده

arianet ssh add [flags]

مثال‌ها

arianet ssh add --name my-laptop --key-file ~/.ssh/id_ed25519.pub --region 1
arianet ssh add --name my-laptop --key "ssh-ed25519 AAAA..." --region 1

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--keystringpublic key content (ssh-ed25519 AAAA...)
--key-filestringpath to public key file (e.g. ~/.ssh/id_ed25519.pub)
--namestringالزامی. label for this SSH key
--regionintالزامی. region ID the key belongs to (see: arianet region list)

arianet ssh delete​

Delete an SSH key

نحوه استفاده

arianet ssh delete <id> [flags]

مثال‌ها

arianet ssh delete 3
arianet ssh delete 3 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-y, --yesboolskip confirmation prompt

arianet ssh get​

Get details of an SSH key

نحوه استفاده

arianet ssh get <id> [flags]

مثال‌ها

arianet ssh get 3
arianet ssh get 3 --output json

arianet ssh list​

List your SSH keys

نحوه استفاده

arianet ssh list [flags]

مثال‌ها

arianet ssh list
arianet ssh list --page 2 --limit 20
arianet ssh list --output json

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-l, --limitint15results per page (max 100)
-p, --pageint1page number

arianet ssh update​

Update an SSH key

نحوه استفاده

arianet ssh update <id> [flags]

مثال‌ها

arianet ssh update 3 --name new-label

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
--namestringالزامی. new label for the SSH key