Archives Posts
April 25th, 2007 by Blu:RayNe
screen -ls - List running screens
screen -r - List and reattach existing session
screen - Simply starte new screen
Ctrl-a " - Bring up list of active sessions
Ctrl-a c - Create new screen
Ctrl-a n - Next Screen
Ctrl-a S - Split screen
Ctrl-a Tab - Switch to split area (and choose or create new window)
Ctrl-a k – Kill window
Ctrl-a : – Open Command line (use resize 18 to set row hieght to 18)
Ctrl-a ] – Empty buffer
Archives Posts
Januar 17th, 2007 by Blu:RayNe
You know the annoyence when SSH again and again asks you to enter the password?
Well, SSH does not allow caching of passwords. Caching would be nonsense since all the security of SSH would then be gone. But you can use RSA to create a private/public pair of keys and send the remote host the public key of your server.
First, we create the key pair:
ssh-keygen -t rsa
The last step of the key creation is the passphrase. Since the purpose of this is to not enter a password, hence being able to create batch jobs, just hit “Enter” twice, leaving them blank.
Then we’ll have to copy the public key to the remote host:
- First create directory for SSH if not existent
ssh root@example.com "mkdir .ssh; chmod 600 .ssh"
-
Then we have to copy the public key of our machine to the remote server
scp ~/.ssh/id_rsa.pub root@example.com:~/.ssh/authorized_keys2
(Ensure authorized_keys2 does not exist on remote host!)