- login server
ssh username@@montana.dataapplab.com -p 49233mkdir .ssh
- on your computer, open terminal
- check the ~/.ssh exists, if not
mkdir ~/.ssh - generate ssh keys:
ssh-keygen -t rsa -f ~/.ssh/id_rsa.dal - edit config
vim .ssh/.config, type:Host dal User bhdshaox HostName montana.dataapplab.com Port 49233 IdentityFile ~/.ssh/id_rsa.dal ForwardX11 yes ForwardX11Trusted yes - append public key to the .ssh/authorized_keys:
ssh username@@montana.dataapplab.com "echo \"`cat ~/.ssh/id_rsa.dal.pub`\" >> .ssh/authorized_keys"
- on your machine terminal, directly enter
ssh dalto login the server