Tag Info

Hot answers tagged

3

An especially good solution for scripting is to use "master" mode, with a socket for control commands: ssh -f -N -M -S <path-to-socket> -L <post>:<host>:<port> <server> To close it again: ssh -S <path-to-socket> -O exit <server> This avoids both grepping for process ids and any timing issues that might be ...


2

You need a desktop manager like xdm, gdm or kdm, configure it for remote access via XDMCP. Once the desktop manager on the desktop PC is set up to accept remote connections you do Xorg :1 vt8 -query <put desktop PC address here> on your netbook. KDM setup Depending on your distribution and version, the name and location of the config files may ...


2

That's about it, but you've inverted home and office. The point is that the office firewall rejects outgoing connections other than web traffic. But since HTTPS traffic and SSH traffic are both encrypted, it can't easily distinguish between them, so the firewall just blocks outgoing connections to ports other than 443 (the standard HTTPS port) and probably ...


1

Instead of wondering how to cope with a complex chain of SSH forwardings, separate the problems. Configure your system to have transparent access to every host. This is done once and for all in your ~/.ssh/config file. To teach SSH to use a machine as a proxy to another machine, declare a ProxyCommand . Host priv-server User user ProxyCommand ssh -W ...


1

This would be simple if you try a native sshfs which is recently added. Install sudo apt-get install sshfs sshfs -ttA user@pub-server ssh user@priv-server This will do the magic. For more infor see here Linux Journal


1

Instead use a more low level form of copying files by catting them locally, and piping that into a remote cat > filename command on priv-server: $ cat file1.txt | ssh -A user@pub-server 'ssh user@priv-server "cat > file1.txt"' or with compression: $ gzip -c file1.txt | ssh -A user@pub-server 'ssh user@priv-server "gunzip -c > file1.txt"' ...


1

I am not entirely clear on what the post talks about but I have been using something similar to redirect the http traffic over ssh from a remote server which does not support X forwarding. I do it as follows: ssh -L23000:localhost:23000 user@remotehost [remotehost] $ python -m SimpleHTTPServer 23000 Open browser on localhost and point it to ...



Only top voted, non community-wiki answers of a minimum length are eligible