Note that many parameters for the ssh can be applied to these commands also. The commands are scp and sftp, see the examples below for basic usage. The ssh client comes with two other very handy tools for moving files around over an encrypted ssh connection. The configuration file can save a lot of typing by including advanced configuration shortcuts any time a connection is made to particular hosts. More information is found in the man page (man ssh_config). Note that the first configuration option found will be used, so the most specific should be at the top of the configuration. The second is a wildcard value of * that will match all hosts. The first is a specific host entry with Port 2112 configured, as well as a custom IdentifyFile and username. In the above example ssh configuration file you can see that there are two Host entries. IdentityFile /home/test/.ssh/remoteserver.private_key This defaults to ~/.ssh/config but can also be specified as a parameter with the -F option. While many users are familiar with the sshd_config file, there is also a client configuration file for the ssh command. To connect to a host that resolves to both IPv4 and IPv6 you can specify add a parameter -4 or -6 to the command line so it resolves correctly.Įach of the above a parameters are optional apart from the remoteserver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |