/~/
. This is quite the opposite to how FTP URLs work and is a common cause for confusion among users.daniel
to transfer todo.txt
from his home directory, it would look similar to this:.ssh
subdirectory in your home directory if the server offers public key authentication. When doing do, you still need to tell curl which user name to use on the server. For example, the user 'john' lists the entries in his home directory on the remote SFTP server called 'sftp.example.com':RHvxC6wUA
on a remote system and can download a file via SCP like this:known_hosts
and is put in a dedicated SSH directory. On Linux systems that is usually called ~/.ssh
.known_hosts
curl can perform transfers.known_hosts
file, you can use the -k / --insecure
command-line option. You must use this option with extreme care since it makes it possible for man-in-the-middle attacks not to be detected.