Kategoriarkiv: SSH

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

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

SSH without password in Linux

make keyfiles: ssh-keygen -t rsa press enter all three times. (no passphrase) go to ~/.ssh/ send the public keyfile to {user} account on {ip}: ssh {ip} -l {user} ‘cat >> .ssh/authorized_keys’ < id_rsa.pub remember to keep the id_rsa file secure! … Læs resten

Udgivet i Knowledge Base, SSH | Skriv en kommentar

Tunnel with PPP and SSH

Use PPP and SSH to create a secure VPN tunnel. There are so many options to choose from when creating a VPN or tunneled connection that it’s mind-boggling. You may not be aware that all the software you need to … Læs resten

Udgivet i Knowledge Base, Networking, Old Base, SSH | Skriv en kommentar

Tunnel connections inside http

Break through draconian firewalls by using httptunnel. If you’ve ever been on the road and found yourself in a place where the only connectivity to the outside world is through an incredibly restrictive firewall, you probably know the pain of … Læs resten

Udgivet i Knowledge Base, Networking, Old Base, SSH | Skriv en kommentar

Using SSH as socks proxy

Protect your web traffic using the basic VPN functionality built into SSH itself. In the search for the perfect way to secure their wireless networks, many people overlook one of the most useful features of SSH: the -D switch. This … Læs resten

Udgivet i Knowledge Base, Networking, Old Base, SSH | Skriv en kommentar

Forward and encrypt trafic with ssh

Keep network traffic to arbitrary ports secure with ssh port forwarding. In addition to providing remote shell access and command execution, OpenSSH can also forward arbitrary TCP ports to the other end of your connection. This can be extremely handy … Læs resten

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

Script til SSH tuneller

Ssh should be configured to log in with keyfiles(not password) And then this script will do the trick, should explain itself. —– #!/bin/sh SERVER_HOSTNAME=geekhosting.dk SERVER_USERNAME=root SERVER_IFIPADDR=10.20.1.1 CLIENT_IFIPADDR=10.20.1.2 MYSUBNET=10.1.0.0/16 LOCAL_SSH_OPTS=”-P” PATH=/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11/: PPPD=/usr/sbin/pppd SSH=/usr/bin/ssh ROUTE=/sbin/route if ! test -f $PPPD ; then … Læs resten

Udgivet i Knowledge Base, SSH | Skriv en kommentar