Forum Moderators: bakedjake
No longer.... I installed "putty" and can how control them all from SSH.
I have to admit I have been very slow to try out something that should have been obvious from the start but to be honest I had no idea how to set it up or use it.
Now I can simply type shell commands in via one computer and have them sent to any box on the lan. It also means that I can finaly get all my computers into a walk in cupboard and forget about monitors ect.
Now I am looking for tips on using ssh effectivly. for example is is possible to open and modify a file using ssh or do I really need direct access to do this.
Any tips tricks greatfuly received :)
Mack.
As for file editing; yep, no problem!
Just log in there and then vi (substitute your favourite editor) the file and you're away.
JP
Example: your evil boss installs filtering software which prevents you from getting to site XYZ. Run a http proxy (like squid) on your remote machine. Setup putty to forward the http proxy port (8080) via SSH Tunnel. Set up your browser to use your proxy on loopback 127.0.0.1:8080. Now when you web browse the requests are sent through your SSH tunnel to your OWN web proxy and you can get to anything you can get to at home. Now you an get to your websites and your evil boss can't really spy on your web activity (well, unless he happens to walk by and notices you're posting to Webmaster World again when you *should* be working).
Also.. IMPORTANT everyone out there: PATCH your machines if you're running OpenSSH. See: [openbsd.org...] There was a patch released on 9.16.03 then another released on 9.17.03. Make sure your systems are up to date.
For editing files on a *nix box mcedit (from mc - Midnight Commander) is a nice one for newbies. It's a Norton Commander clone... if you happen to be one of those old DOS guys.
And if you can't use even that you can always scp the file to your box, edit it there, and scp it back.
I don't know Putty all that well, since my employer has the SSH Communications Corporation client on all the Windows machines and I don't run Windoze on any of my own boxen. However, there's a decent chance it honors the same command line options as the OpenSSH *nix client. I do:
workuser@workbox:~$ ssh -l homeuser -L 5900:home.box:5901 home.box
homeuser@home:~$ vncserver
Then launch vncviewer on the work machine, pointed at localhost:0. Full graphical desktop from the remote machine, in a window on the one you're sitting at. All the data goes over the encrypted SSH link, and I have access to all my favorite *nix apps on my home machine. It's suprising how often I actually use this to get work done with better tools I have at home.
Install it on your webserver and then you don't need to download a client to the machine you're using (assuming that it has java support). I've found this handy when accessing my computer from things such as free airport internet access kiosks. :)