Another situation where this comes in handy is if you're trying to run a service (like the above) through a computer that has a firewall blocking most ports. A perfect example is file sharing, or remote desktop sharing. This comes in handy if, for example, you want to use a protocol that shares information between two computers, but the protocol is completely and hopelessly insecure. SSH can be used to create tunnels between ports on two computers. you can use this to copy a file from a remote server to your local computer. Scp -o 'Prox圜ommand ssh -c filetocopy of course, one of the can be local, i.e. For example, you can tell scp which cipher to use by using the Cipher or Ciphers option:Īlternatively, you can specify which ssh command scp should use, by using the Prox圜ommand option: It has the -o flag, which allows you to set options in the same form as options set in the ssh_config file. Some of the tricks mentioned below and above for ssh and sshfs can also be applied to scp. $ sshfs -o Cipher="arcfour" /path/to/mount/locally $ sshfs /path/to/mount/locallyĪnd if you don't want it to take forever, you can use a faster cipher: Otherwise, it's literally as easy to mount a remote directory as a local disk as it is to brush your teeth: If you want to use SSHFS on a Mac, you need to install MacFUSE: Īnd if you want a nice GUI for MacFUSE, you can install MacFusion: It comes built-in to pretty much any Unix or Linux distro, but unfortunately it doesn't come stock on a Mac. SSHFS ( ) allows you to mount remote directories and see them/treat them as local directories. 1.6 SSH Man-In-The-Middle Attacks and SSH Fingerprints.1.3.4 Tunneling from local port to remote port.1.3.3 Tunneling Remote Desktop Connections over SSH.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |