ssh : name or service unknown
Hello,
I am connected to a server with openvpn. When I try to get a file from this server to my workstation, then the error appears : ssh: 2011-04-28_10: Name or service not known But in fact the name of the file is : 2011-04-28_10\:26\:45 I guess the system can not handle the time indication in the filename ? Escaping it with \ does not help apparently. |
Did you try using single quotes? Eg something like:
Code:
scp somemachine:'2011-04-28_10:26:45' . |
I cannot reproduce your error, since scp on my system accepts colons in file names flawlessly. Please show us the exact command you've tried. In alternative you can try something like:
Code:
ssh user@host "cat 2011-04-28_10:26:45" > 2011-04-28_10:26:45 |
Actually, the exact command is :
scp * Jonas@10.10.0.2:/home/Jonas/Desktop |
I would use rsync for this. Eg, something like:
Code:
rsync -auv --dry-run -e ssh ./ Jonas@10.10.0.2:/home/Jonas/Desktop/ Evo2. |
Hi,
Suppose you have file1 (in directory /tmp) on 192.168.1.3 and you want to copy it on 192.168.1.4 the do this Run this command from 192.168.1.4 Code:
scp 192.168.1.3:/tmp/file1 . hope this helps |
Quote:
Code:
scp ./* Jonas@10.10.0.2:/home/Jonas/Desktop |
hi, you can try scp -r filename user@hostname:/path where you want to copy file/.
I think linux accepts spaces and columns in filenames, you might want to check as well your sshserver and sshclient if they are installed in your machine. |
Quote:
|
All times are GMT -5. The time now is 07:53 PM. |