Posts

Showing posts with the label ssh

Can't connect to VMWare Server using vSphere client

If you are not able to connect to your VMWare Server using the vSphere client but you are sure that the VMWare server is up and running, try this : If you have enabled the ssh service connect to the SSH console of the server and type : services .sh restart This will restart the services without stopping the virtual machines

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

Configure virt manager (Virtual Machine Manager) to connect to remote server using your rsa key

Image
First, you have to generate a private / public key pair and publish your public key on the host server running the virtual machines. Information about it can easily be found on the web . After, simply write your private key in the file id_rsa in the .ssh folder located in your home folder. If the folder .ssh doesn't exist you can create it. Ensure that only your user has the right to read that id_rsa file, or the key will be ignored when connecting to ssh : > chmod 600 id_rsa In the Add Connection form of the Virtual Machine Manager, select SSH method and root username (or any other user on the remote server where is published your public key) Enjoy !

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 ;)