LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Transfer file from slack to school server (http://www.linuxquestions.org/questions/slackware-14/transfer-file-from-slack-to-school-server-386323/)

mustangfanatic01 11-25-2005 01:21 AM

Transfer file from slack to school server
 
Having a problem doing this. I know they recure secure transmissions. I use WinSCP in windows so I was assuming that scp would work in linux.

ermcgrat@Slackware:~$ scp snapshot1.png ermcgrat@login.oakland.edu:/
ermcgrat@login.oakland.edu's password:
scp: /snapshot1.png: Permission denied
ermcgrat@Slackware:~$

yet:

ermcgrat@Slackware:~$ ssh login.oakland.edu
ermcgrat@login.oakland.edu's password:
[ermcgrat@grant]$ ls
bin/ html/ mail/ tmp/
[ermcgrat@grant]$

So it's not letting me use SCP anymore for some reason, but since I got in with SSH how can I upload my pics from my local /home directory? Thanks!

mustangfanatic01 11-25-2005 01:34 AM

To answer my own question a simple reverse scp works well :)

[ermcgrat@lee]$ scp 24.10.71.xxx:/home/ermcgrat/snapshot1.png .
Warning: Permanently added '24.10.71.xxx' (RSA) to the list of known hosts.
ermcgrat@24.10.71.xxx's password:
snapshot1.png 100% 744KB 44.3KB/s 00:16
[ermcgrat@lee]$ ls
mustang/ snapshot1.png wow/

Last octal changed to xxx to prevent myself from being hacked :D

Edit: Screenshots I was uploading for a friend who recently converted to linux.
http://personalwebs.oakland.edu/~ermcgrat/snapshot2.png
http://personalwebs.oakland.edu/~ermcgrat/snapshot2.png

odevans 11-27-2005 02:58 AM

Re: Transfer file from slack to school server
 
Quote:

Originally posted by mustangfanatic01
ermcgrat@Slackware:~$ scp snapshot1.png ermcgrat@login.oakland.edu:/

try:
Code:

ermcgrat@Slackware:~$ scp snapshot1.png ermcgrat@login.oakland.edu:~/
you were trying to copy to your school's comp's root dir (/) - note the tilde (~/), signifiying your home dir

cheers,

O


All times are GMT -5. The time now is 04:48 AM.