Re: scp

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: kitepilot@kitepilot.com
Date:  
To: Main PLUG discussion list
Subject: Re: scp
> scp: /home/xbmc/pictures/weddingdress4.jpg: Permission denied
You are overdoing usage of root.
Bad, bad, bad boy, sooner or later you'll pay for it...


> Offending ECDSA key in /root/.ssh/known_hosts:1

The identification of your remote host changed, critical if you don't know
the remote box, trivial in your case because you control both.
Solution?
Remove the line:
sed -i 1d /root/.ssh/known_hosts
Again, bad practice as root.

You should:
sudo chown bmike1. /home/xbmc/pictures/weddingdress4.jpg (the DOT(.) after
bmike1 matters!)
And then scp your thing.
ET




Michael Havens writes:

> well, I'm trying to copy what is on the larger usb drive across the network
> to the TV server. What is happening is that it tries to copy the files and
> gives me a permission denied error then I append sudo to the command and it
> tells me to do something to fix the error that appears but after I do it
> the permission denied error persists. what am I doing wrong?
>
> scp: /home/xbmc/pictures/weddingdress4.jpg: Permission denied
> bmike1@PresarioLapTop1:/media/bmike1/USB20FD$ sudo scp -r *
> xbmc@192.168.0.3:/home/xbmc/pictures
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
> Someone could be eavesdropping on you right now (man-in-the-middle attack)!
> It is also possible that a host key has just been changed.
> The fingerprint for the ECDSA key sent by the remote host is
> c1:d5:5d:4e:32:9c:4b:28:53:17:49:a6:37:a3:bf:62.
> Please contact your system administrator.
> Add correct host key in /root/.ssh/known_hosts to get rid of this message.
> Offending ECDSA key in /root/.ssh/known_hosts:1
>   remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.0.3
> ECDSA host key for 192.168.0.3 has changed and you have requested strict
> checking.
> Host key verification failed.
> lost connection
> bmike1@PresarioLapTop1:/media/bmike1/USB20FD$
> bmike1@PresarioLapTop1:/media/bmike1/USB20FD$
> sudo  ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.0.3
> /root/.ssh/known_hosts updated.
> Original contents retained as /root/.ssh/known_hosts.old
> bmike1@PresarioLapTop1:/media/bmike1/USB20FD$ sudo scp -r *
> xbmc@192.168.0.3:/home/xbmc/pictures
> The authenticity of host '192.168.0.3 (192.168.0.3)' can't be established.
> ECDSA key fingerprint is c1:d5:5d:4e:32:9c:4b:28:53:17:49:a6:37:a3:bf:62.
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added '192.168.0.3' (ECDSA) to the list of known hosts.
> xbmc@192.168.0.3's password:
> scp: /home/xbmc/pictures/0000backup: Permission denied
> scp: /home/xbmc/pictures/100_0643.JPG: Permission denied
> scp: 

>
> :-)~MIKE~(-:

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss