Ubuntu Pastebin

Paste from nudoge at Sat, 18 Mar 2017 14:00:46 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
ssh-keygen -t rsa -C user@host
sftp -P <port> remoteuser@server
put .ssh/id_rsa.pub
exit
ssh -p <port> remoteuser@server
cat id_rsa.pub >> .ssh/authorized_keys
rm -iv id_rsa.pub
exit
vim .bashrc
alias server='ssh -p <port> remote@server'
exit

# Enter a new terminal and type server
Download as text