Posts

Showing posts with the label putty

Use your private linux server (NAS or other) as a proxy with ssh, PuTTY and Firefox

Image
In PuTTY parameters, in Connection > SSH > Tunnels Configure your SSH connection as usual In Source port , input the port that putty will listen on (e.g. 44444). Use a port that is not currently used on the computer running putty In  the three-option Local, Remote, Dynamic, choose Dynamic Click the Add button Click the Open button to connect to the server In the Firefox options, Advanced > Network > Parameters , select the option Manual proxy configuration . In the field SOCKS host , input 127.0.0.1 and in port , the port you have configured in PuTTY. Your Firefox should now tunneling all your connections through your private server. (This should also work with any server running SSH) UPDATE 2014-03-12 :  If you also would like to secure your DNS queries, write "about:config" in the address bar. Then search for the value network.proxy.socks_remote_dns and set it to true  #1

Connect to your local router from wan through ssh

In a previous post , I've described how to open remote management for your bbox2 / local modem-router via ssh. I've found an easier and more secure way to achieve this : Prerequisites : * You have PuTTY (or an ssh client) * ssh server on your local network is reachable from wan In PuTTY settings > Connection > SSH > Tunnels , define the following : Source port : 8080 (or any free port on your computer running PuTTY) Destination : 192.168.1.1:80 (assuming your router ip is 192.168.1.1 and the default web interface running on port 80 ) Click on [Add] Apply changes You can now connect on your router web interface from your computer running PuTTY via the following address : http://localhost:8080/

Connect to SSH with a Public Key on a Synology Station

Prerequisites : You own a public key and a private key, or you can generate one with puttygen or openssl ipkg and nano installed if you want to use this editor First connect to your nas as root via ssh using your admin password. If you want to connect later on as root, go in the home folder of root If you want to connect as another user, go in the home folder of the other user, and follow the same instructions cd /root/ Go to or create the directory .ssh mkdir .ssh cd .ssh/ Open the file authorized_keys (assuming nano is installed with ipkg, otherwise use cat or vi) : nano authorized_keys Copy your public key inside the file and save it. Open sshd config file : nano /etc/ssh/sshd_config Ensure the two following parameters are enabled and uncommented : RSAAuthentication yes PubkeyAuthentication yes Configure your ssh client to use your private key and enjoy ;)