Posts tagged 'ssh'

SSH Socks Proxy

More SSH goodness.

To set up a SOCKS proxy over ssh simply run

$ ssh -D 1080 user@example.com

and set your browser's SOCKS proxy settings to point to localhost:1080

I found this really handy for downloading research ...

Using scp through a DMZ gateway to a machine behind a firewall using a tunnel

How to set up port forwarding from your local machine to a remote machine behind a firewall through a gateway machine.

Commands are run on your local machine.

IP addresses obviously need to be replaced with the actual addresses or host names of the target pc.

First you setup port ...

ssh

Installing ssh server

sudo apt-get install openssh-server

Setting up ssh connections without requiring a password

  1. Copy public key from local machine to remote machine

    scp ~/.ssh/id_rsa.pub mythbox@c2:/tmp/jess.id_rsa.pub
    
  2. Log in to remote machine and append public key to authorized_keys file

    ssh mythbox ...