SSH Tips and Hints

Список хостов.


~/.ssh/config
Host *
ForwardAgent yes
-----------------------------
Host alpha
HostName alpha.pupkin.net
User v.pupkin
-----------------------------
Host beta
HostName 192.168.1.17
User v.pupkin
ProxyCommand ssh alpha nc %h %p
-----------------------------
Host *.pup
User v.pupkin
ProxyCommand ssh beta nc %h %p

Вход без пароля.

на клиенте


/etc/ssh/ssh_config
IdentityFile ~/.ssh/id_rsa

Гнерируем ключ:
ssh-keygen -t rsa
Засылаем на сервер:
ssh-copy-id <сервер>

на сервере


/etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys

Иксы через туннель.


/etc/ssh/sshd_config
X11Forwarding Yes

Оставить комментарий

Вы можете использовать HTML теги и аттрибуты:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Switch to our mobile site