Самым распространенным способом удаленного управления в unix/linux мире является протокол ssh.
Для подключения к свежеустановленному серверу или рабочей станции с debian 7 (впрочем, как и других версий) нужно установить сервер ssh, а для подключения к другим компьютерам — ssh клиент.
Устанавливаем ssh сервер
Воспользуемся широко распространенным и бесплатным пакетом openssh:
root@deb01: ~# apt-get install openssh-server Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: libffi5 libglib2.0-0 libglib2.0-data mc-data shared-mime-info unzip Use 'apt-get autoremove' to remove them. Suggested packages: ssh-askpass rssh molly-guard ufw monkeysphere The following NEW packages will be installed: openssh-server Preconfiguring packages ... 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/340 kB of archives. After this operation, 726 kB of additional disk space will be used. Selecting previously unselected package openssh-server. (Reading database ... 25010 files and directories currently installed.) Unpacking openssh-server (from .../openssh-server_1%3a6.0p1-4+deb7u2_amd64.deb) ... Processing triggers for man-db ... Setting up openssh-server (1:6.0p1-4+deb7u2) ... [ ok ] Restarting OpenBSD Secure Shell server: sshd.
Устанавливаем ssh клиент
Уже упомянутый openssh содержит, так же, и отличный клиент ssh:
root@deb01: ~# apt-get install openssh-client Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: ssh-askpass libpam-ssh keychain monkeysphere The following NEW packages will be installed: openssh-client 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,024 kB of archives. After this operation, 2,320 kB of additional disk space will be used. Selecting previously unselected package openssh-client. (Reading database ... 25044 files and directories currently installed.) Unpacking openssh-client (from .../openssh-client_1%3a6.0p1-4+deb7u2_amd64.deb) ... Processing triggers for man-db ... Setting up openssh-client (1:6.0p1-4+deb7u2) ...
Как пользоваться клиентом ssh
Для подключения к другому компьютеру по протоколу ssh теперь достаточно указать пользователя, сервер и пароль для подключения:
root@deb01:~# ssh user@serv01 user@serv01's password: Last login: Wed Dec 10 18:26:59 2014 from 192.168.0.72 [user@localhost ~]#