SSH
- 1 ответ
- 0 вопросов
1
Вклад в тег
adduser user1
cd /root/
ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/root/.ssh/id_dsa): user1
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase): <нажмите ENTER чтобы было без пароля>
Enter same passphrase again: <нажмите ENTER чтобы было без пароля>
Your identification has been saved in /root/.ssh/user1.
Your public key has been saved in /root/.ssh/user1.pub.
mkdir /home/user1/.ssh
cp user1.pub /home/user1/.ssh/authorized_keys
chown user1:user1 /home/user1/.ssh/authorized_keys
mv user1 user1.pem
ssh -i user1.pem user1@hear.is.your.ip без ввода пароля