How to exclude file when using scp command recursively

Posted on in Categories , , , last updated December 29, 2017

I need to copy all the *.c files from local laptop named hostA to hostB including all directories. I am using the following scp command but do not know how to exclude specific files (such as *.out):
$ scp -r ~/projects/ user@hostB:/home/delta/projects/
How do I tell scp command to exclude particular file or directory at the Linux/Unix command line?
Continue reading “How to exclude file when using scp command recursively”

How to install keychain manager for ssh-agent on CentOS 6/7

Posted on in Categories , , , , last updated February 2, 2018

OpenSSH offers RSA and DSA authentication to remote systems without supplying a password. keychain is a special bash script designed to make key-based authentication incredibly convenient and flexible. It offers various security benefits over passphrase-free keys. How do I install keychain on a CentOS Linux 6.x or 7.x?