How to exclude file when using scp command recursively

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”

Apple OS X: Install X Window System XQuartz For SSH X11 Forwarding On a Mavericks or Yosemite

in Categories , , , , last updated May 5, 2015

I need to tunnel X Window securely over SSH bases session so that I run X program on my remote Linux/Unix server/workstation and get back display to my Apple Macbook pro laptop. I tried the ssh -X user@server1 and ssh -Y user@server2 commands on both OS X Mountain Lion and Apple OS X Mavericks/Yosemite. But, I am unable to use the ssh command with X11.

How do I fix this problem on OS X and enable X11 forwarding with ssh command? How do I install XQuartz ( server on Apple OS X Mountain Lion or Mavericks or Yosemite?

HowTo: Revoke OpenSSH Keys and Disable User Access

in Categories last updated November 6, 2012

Many users are using ssh to log into a remote machine and append the indicated identity file to machine’s ~/.ssh/authorized_keys file. I recently moved one of my server, and I would like to revoke openssh keys and disable user access under Linux operating systems. How do I revoke OpenSSH keys under Unix or Linux operating systems?