Generate Key...

# 1) [A] ssh-keygen -t dsa -b 1024 -f $HOME/ssh-key <enter/enter>

# 2) [A] scp ssh-key.pub B:~/.ssh/
# 3) [B] cat B:~/.ssh/ssh-key.pub >> $HOME/.ssh/authorized_keys
        [B] chmod 700 $HOME/.ssh/authorized_keys
# 4) [B] rm ssh-key.pub
# 5) [A] alias B='ssh  -i ~/.ssh/ssh-key -Y -C user@B'

Make config ...

[A] emacs .ssh/config

Host *
ForwardX11 yes
ForwardAgent yes
VisualHostKey yes                                                                       
PermitLocalCommand yes
IdentityFile ~/.ssh/ssh-key
Compression yes
CompressionLevel 6

ssh B



'Computer > linux' 카테고리의 다른 글

Using parted, add a new 2TiB HDD  (0) 2011.01.26
ssh connection without typing password  (0) 2011.01.19
several find commands  (0) 2011.01.18
Error read: Connection reset by peer when sshfs is using.  (0) 2010.12.21
posted by citadel