Город МОСКОВСКИЙ
00:02:31

SSH - Copy public key to remote server

Аватар
JS Пассивный Доход: Эффективные Методы
Просмотры:
23
Дата загрузки:
03.12.2023 12:46
Длительность:
00:02:31
Категория:
Обучение

Описание

Make sure to watch with Subtitles/CC turned ON.

Generate key pair:
$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/yourkey -C "your@email.com"

Copy key:
$ ssh-copy-id -i /path/to/your-private-key remoteuser@remotehost

SSH using your private key:
$ ssh -i /path/to/your-private-key remoteuser@remotehost

If you create the key pair under a directory other than "~/.ssh/", then you can specify its location using the SSH config file. You can see how to do that in my previous SSH Basics video.

Рекомендуемые видео