Это старая версия документа.


How to setup SSH on Ubuntu

Consider that 192.168.1.1 is a host, and «denis» is a user on the host side.

1. Installing server sudo apt-get install ssh

2. Setting up server sudo gedit /etc/ssh/sshd_config — Port 2000 PermitRootLogin no AuthorizedKeysFile %h/.ssh/authorized_keys —

sudo service ssh restart

3. Setting up client

ssh-keygen -t dsa (empty answer for every question)

ssh-copy-id «denis@192.168.1.4 -p 2000»

4. Close server access for user without dsa-authorization: sudo gedit /etc/ssh/sshd_config — PasswordAuthentication no —

sudo service ssh restart

dev/ubuntu/ssh.1301667471.txt.gz · Последние изменения: 2011/04/01 18:17 — jamis7005
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0