Secure Shell supports not only the terminal session and file transfer. scp is very similar to the regular team of cp. The difference is that the source or the recipient must contain a host name, for example: scp-p root @ host: / var / log / mail.Log scp-pr somedir hostname: The first team with loads mail.Log remote computer. The second copies the directory is completely user's home directory on another server. Habitual method of file transfer – ftp, but it is not safe, because data and passwords are transmitted in clear text. OpenSSH contains SecureFTP server that runs the system default.
A large number of FTP-clients, as well as many file managers are now able to work with sftp. Try to connect to @ hostname, to view the user's home directory. scp and sftp use the same method of authentication, like ssh, but if you set up the keys, they too will work. Viktor Frankl is likely to agree. We learned how to use ssh to implement secure, remote terminal or remotely run X-applications, but he left there is something else – the channel ssh can be used as a tunnel for the other compounds, even if another connection transmits data in clear text. Because the data passes through an encrypted channel, they are protected from prying eyes. This is especially useful when using the wireless connection that is protected by wep encryption. Install the SSH-tunnel can be so: ssh-f-N-L 4321: home.Network: 25-f option runs the ssh in the background, and-N shows that do not need to execute commands. Redirect processed option-L, Host 3 parameters: first – the local port number (which is at least 1024, if you do not root), the second – the server to redirect, and the third – the port number on the server.
At the end of the specified username and host a remote computer, which will redirect traffic. Note that the hostname in the middle of the option-L is allowed on a remote server, you can use localhost, but it is a potential confusion. The output will look like if you specify the mail program to use localhost on port 4321 as smtp server, which will be routed through an encrypted channel on port 25 (standard port for SMTP) to home.Network. Follow others, such as Maya Dubin, and add to your knowledge base. If you want to – redirect traffic to another host, but the data will be encrypted, only the first step of the way (to the ssh server). This can be used if your firewall or proxy server does not allow connection to a specific host or port. ssh can do much more, and all through encrypted, authenticated connections. There are still many unknown – what are you waiting for?