Quick Tip – copying colons over ssh and rsync

Nov 19 2013 Published by under tech

If you happen to want to copy a file in the current directory with a colon in the name:

this will fail. Possibly after quite a timeout, with a completely unrelated error (unresolved domain name some-file maybe?)

This is because ssh uses colons to separate the user@host part from the filename part.

The fix when the source is on the local computer is to ensure the path starts with a dot:

Incidentally this is related to that old newby fail, forgetting the trailing colon when coping to a destination home directory:

results in a file in the current directory called ‘user@host’. Oops!

No responses yet

When ‘ssh -X somehost’ doesnt work…

Nov 24 2012 Published by under howto, tech

So I went to try and remote run an xterm from a machine I had not turned on for a while…

And unexpectedly received the following error message:

After some scratching around I found the following error message in /var/log/auth:

After more had scratching and reading the sshd_config manpage, I remembered I often turn off ipv6 on test machines on my local network (yes, I know…) This doesn’t always play well with default configs of a lot of software, including ssh. Enabling the following setting in /etc/ssh/sshd_config resolved the problem:

No responses yet

Using SSHFS with a specific identity

Jan 06 2012 Published by under howto, linux

The program sshfs is a Linux tool which lets you mount a remote directory accessible via the SSH protocl as a filesystem over fuse. However it defaults to using ‘id_rsa’ as the SSH identity and there are no direct command line options for selecting an alternate identity, or for that matter other SSH parameters such as the TCP port to connect to.
Continue Reading »

No responses yet