Notes by voodoo

Displaying keyword search results 1 - 7
Created by voodoo on August 12, 2011 12:21:39    Last update: August 12, 2011 12:21:39
For OpenSSH , use the -X or -Y switch to enable X11 forwarding (GUI applications can be launched transparently): ssh -X -l username ssh_host # or ssh -Y -l u... This works only if the server side sshd is configured to allow X11 forwarding.
Created by voodoo on January 20, 2011 13:17:25    Last update: January 20, 2011 13:18:36
The rsync include/exclude syntax seemed a bit funky. So here are some examples as a reminder. On my remote server I have some log files: server*.log , boot*.log , and access*.log I only want to bring the access*.log files over. So I did: rsync -ave "ssh -i ~/.ssh/identity -l remoteUser" ... It brought everything over. Then I changed to: rsync -ave "ssh -i ~/.ssh/identity -l remoteUser" ... It brought nothing over. Finally, I tried (reverse the order of exclude and include): rsync -ave "ssh -i ~/.ssh/identity -l remoteUser" ... and that worked.
Created by voodoo on August 31, 2010 15:36:55    Last update: August 31, 2010 15:38:24
This works for OpenSSH . Steps: Start SSH tunnel: ssh -D 8088 user@remote.host.running.sshd Set socks proxy to "localhost:8088" in your browser. Result: Communication link between your computer and the remote host running sshd is encrypted. Why? You might want to do this when you are on a untrusted network, e.g., accessing your Yahoo! mail via wifi at Starbucks or a hotel.
Created by voodoo on July 11, 2009 15:14:55    Last update: July 29, 2010 22:45:48
cURL is a command line tool for transferring files with URL syntax. The main purpose and use for cURL is to automate unattended file transfers or sequences of operations. It's really easy to see HTTP headers with curl: C:\>curl --head http://www.google.com HTTP/1.0 ... or, headers and page together (dump headers to stdout): $ curl --dump-header - http://www.google.com HTTP/... Download openssl from openssl.org: curl http://www.openssl.org/source/openssl-0.9.6m.... C:\>curl --help Usage: curl [options...] <url> ...
Created by voodoo on February 08, 2010 04:36:31    Last update: February 08, 2010 05:10:57
If you have X server on the client side, you can run remote desktop with XDMCP . But XDMCP is not secure, and it's somewhat tricky to tunnel XDMCP through ssh. So if you are concerned about security, VNC is a much better choice. Plus vncviewer is a lot easier to set up than X server. There are two options to set up VNC server: VNC vino-server Many Linux distros come with remote desktop server installed. On Fedora Core, you can simply set the configuration from the Desktop menu (Desktop -> Preferences -> Remote Desktop), and use vncviewer from the client machine to access the desktop remotely. Install RealVNC or TightVNC and configure it yourself You need to change ~/.vnc/xstartup in order to see the...
Created by voodoo on February 08, 2010 04:57:49    Last update: February 08, 2010 04:57:49
If you don't want to open an extra port for VNC or want extra security with SSH, you can setup an SSH tunnel for VNC. On Windows, you can do this with Putty or openssh . Open a command window, and enter (using Putty as example): C:\local\bin\plink.exe -ssh -2 -L localhost:5901:r... When connecting with vncviewer , use localhost:5901 as server instead of remote_host:5901 . If you use the setup frequently, it is more convenient to setup the tunnel as a Windows service . Assuming the name of the service is vnc_tunnel , the registry entry would look like: Windows Registry Editor Version 5.00 [HKEY_...
Created by voodoo on December 20, 2009 04:46:36    Last update: February 08, 2010 03:49:21
Cygwin comes with openssh and X Windows. You need to select these packages from the cygwin installation screen: openssh (Net) X-start-menu-icons (X11, optional) xinit (X11) xorg-server (X11 server) To start an X-enabled remote SSH session, you need to start the X server on the cygwin side first: startxwin then enter: ssh -Y user@network-address This allows you run X apps on cygwin, but you won't see your normal Linux desktop (gnome, KDE etc.). In order to see remote desktop, you need to run XDMCP (Display Manager Control Protocol, which isn't secure). It's a bit tricky to set up XDMCP over ssh.