=== �� ������� ===

mkdir ~/.ssh

cd ~/.ssh



#������� ���� ssh �������� ��������:

ssh-keygen

$ Generating public/private rsa key pair.

$ Enter file in which to save the key (/root/.ssh/id_rsa):

$ Enter passphrase (empty for no passphrase): [������ ����� �� ��]





#����������� ��� ���, ��������� ����

cat id_rsa.pub > ~/.ssh/authorized_keys



#������� ��������� ��

cat id_rsa.pub >> ~/.ssh/authorized_keys



# ������� ����� �� ����� �����

chmod 600 ~/.ssh/authorized_keys



#������ �� ����� �������� ��

cat ~/.ssh/id_rsa



#������� � ���� �� �������



=== �� ������� ===



#���� ������������ �������� �� id_rsa � ������ putty

puttygen.exe

->��������

->������� ���� ��



#������ �� *.ppk

#���������� -> SSH -> ������������ -> ���� � ���� ���� �� ������������� -> �����







#cat ./id_rsa.pub




изменён: 06 января 2024 г.