Månedsarkiv: januar 2013

Overvågning af process og genstart den hvis den vælter

Hvis du har en process der vælter hele tiden og du ikke lige umiddelbart kan fikse den er her et hurtigt fif til at holde den kørende alligevel. Opret et script proxhack.sh: #!/bin/sh pgrep pvestatd > /dev/null || /etc/init.d/pvestatd start … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Make SSH stop asking stupid questions

To make your everyday SSH experience a little more enjoyable, use these local config settings: your local config is in ~/.ssh/config host * ForwardAgent yes SendEnv LANG LC_* HashKnownHosts no ServerAliveInterval 30 host oldhost.example.net User myoldusername host *.companyhosts.example.net User root … Læs resten

Udgivet i Knowledge Base, SSH | Skriv en kommentar

disable password login on SSHD

(openssh) To disable interactive login and only permit RSA keys: # Change to no to disable s/key passwords ChallengeResponseAuthentication no PasswordAuthentication no KbdInteractiveAuthentication no

Udgivet i Knowledge Base | Skriv en kommentar

SSH Tunnel in the Background

Use this to make a SSH tunnel in the background: # nohup ssh -f -N -L 81:target.example.com:81 jumphost.example.com nohup makes the thing go away in the background -f makes SSH run in the background -N tells SSH that it should … Læs resten

Udgivet i Knowledge Base, SSH | Skriv en kommentar