User Tools

Site Tools


ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ssh [2020/12/20 17:19] chifekssh [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 1: Line 1:
-Enabling SSH on Ubuntu+[[ssh_keys|ssh_keys]]
  
-<code> 
-sudo apt update 
-sudo apt install openssh-server 
-</code> 
  
-Enter the password when prompted and enter Y to continue with the installation.+[[ssh_server|ssh_server]]
  
-<code>sudo systemctl status ssh</code> 
- 
-You should see something like Active: active (running) 
- 
-Ubuntu comes with a firewall configuration tool called UFW. If the firewall is enabled on your system, make sure to open the SSH port: 
- 
-<code>sudo ufw allow ssh</code> 
- 
- 
-====== Linux/MacOS ====== 
- 
- 
-**Откройте терминал и выполните команду:** 
- 
-<code>ssh-keygen -t rsa</code> 
- 
-На консоль будет выведен следующий диалог: 
- 
-<code>Enter file in which to save the key (/home/user/.ssh/id_rsa):</code> 
-Нажмите на клавишу Enter.  Далее система предложит ввести кодовую фразу для дополнительной защиты SSH-подключения: 
- 
-<code>Enter passphrase (empty for no passphrase):</code> 
-Этот шаг можно пропустить. При ответе на этот и следующий вопрос просто нажмите клавишу Enter. 
- 
-После этого ключ будет создан, а на консоль будет выведено следующее сообщение: 
- 
-<code>Your identification has been saved in /home/user/.ssh/id_rsa. 
-Your public key has been saved in /home/user/.ssh/id_rsa.pub. 
-The key fingerprint is: 
-476:b2:a8:7f:08:b4:c0:af:81:25:7e:21:48:01:0e:98 user@localhost 
- 
-The key's randomart image is: 
- 
-+--[ RSA 2048]----+ 
- 
-|+.o.             | 
- 
-|ooE              | 
- 
-|oo               | 
- 
-|o.+..            | 
- 
-|.+.+..  S .      | 
- 
-|....+  o +       | 
- 
-|  .o ....        | 
- 
-|  .  .. .        | 
- 
-|    ....         | 
- 
-+-----------------+</code> 
- 
-Далее выполните в терминале команду: 
- 
-<code>cat ~/.ssh/id_rsa.pub</code> 
ssh.1608484758.txt.gz · Last modified: 2023/09/14 06:06 (external edit)