scp request.csv firstname.lastname@example.org:/home/armann/Documents/
reqquest.csv needs to be in your current directory.
scp email@example.com:/tmp/codepipeline-user.pdf .
The dot at the end represents your current local directory.
scp -r /home/armann/Music/ firstname.lastname@example.org:/tmp/
scp -r email@example.com:/var/log/ /home/armann/
scp firstname.lastname@example.org:~/random.sh email@example.com:/tmp/
–r Recursively copy entire directories. Note that this follows symbolic links encountered in the tree traversal.
-C Compression enable. Passes the -C flag to ssh to enable compression.
-l Limits the used bandwidth, specified in Kbit/s.
-o Can be used to pass options to ssh in the format used in ssh_config.
-P Specifies the port to connect to on the remote host. Note that this option is written with a capital ‘P.’
-p Preserves modification times, access times, and modes from the original file.
-q Disables the progress meter as well as warning and diagnostic messages from ssh.
-v Verbose mode. Print debugging messages about progress. This is helpful in debugging connection, authentication, and configuration problems.
Most likely you have five or more ssh keys loaded. Check how many keys you have with
If you see five keys or more you are out of luck for now. Remove one of the keys you are not going to be needing soon.
ssh-add -L ~/.ssh/id_ed25519yourprivatekey
If that doesn’t work you can remove keys with
Your ssh client will attempt to use all the keys from
ssh-agent one by one before it gets to use the key you specified with
-i. Each attempt counts as an authentication failure and by default only 5 attempts are allowed by the SSH server you are getting the error you see. Too many authentication failures.
Here you’re starting the ssh-agent. This initializes the “SSH_AUTH_SOCK” environment variable which is used by the other SSH tools to find the Unix socket for the agent.