hey guys I’m fairly new to linux, and was hoping you guys could resolve an issue I’m having. I’m trying to connect to the computer/server at my school so I can easily copy files from there onto my laptop and copy back files from my laptop onto there. I’m trying to use SSH to do so, but here’s where I run into a problem.
Show us the exact command and output (copy/paste).
Just for consistency use a full DNS name for your scp like you do with ssh.
Also, to be overly-specific, add trailing-slashes when specifying a
directory, for example on the local side when copying the ‘filename’ from
your jbh3-1 box (/home/csci201/).
Good luck.
On 04/14/2010 10:26 PM, avislash wrote:
>
> hey guys I’m fairly new to linux, and was hoping you guys could resolve
> an issue I’m having. I’m trying to connect to the computer/server at my
> school so I can easily copy files from there onto my laptop and copy
> back files from my laptop onto there. I’m trying to use SSH to do so,
> but here’s where I run into a problem.
>
> When I do ssh amisra@jbh3-1.cse.csusb.edu I’m able to connect fine.
>
> But when i do scp amisra@jbh3-1:/u/csci/amisra/csci201/filename, and
> try to copy it to my laptop, /home/csci201 I get:
>
> /home/csci201: Permission Denied.
>
> Now when i try to do scp amisra@jbh3-1:/u/csci/amisra/csci/201/filename
> /home/avislash/csci201 I get:
>
> /home/avislash/csci201: No such file or directory.
>
> So any idea as to what I’m doing wrong?
>
> I apologize if this has been asked before!
>
> Thanks for all your help,
>
> Avi
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
On Thu, 15 Apr 2010 04:26:01 +0000, avislash wrote:
> hey guys I’m fairly new to linux, and was hoping you guys could resolve
> an issue I’m having. I’m trying to connect to the computer/server at my
> school so I can easily copy files from there onto my laptop and copy
> back files from my laptop onto there. I’m trying to use SSH to do so,
> but here’s where I run into a problem.
>
> When I do ssh amisra@jbh3-1.cse.csusb.edu I’m able to connect fine.
>
> But when i do scp amisra@jbh3-1:/u/csci/amisra/csci201/filename, and try
> to copy it to my laptop, /home/csci201 I get:
>
> /home/csci201: Permission Denied.
>
> Now when i try to do scp amisra@jbh3-1:/u/csci/amisra/csci/201/filename
> /home/avislash/csci201 I get:
>
> /home/avislash/csci201: No such file or directory.
>
> So any idea as to what I’m doing wrong?
>
> I apologize if this has been asked before!
>
> Thanks for all your help,
>
> Avi
[amisra@jb359-0 ~]$ scp amisra@jb359-0:/u/csci/amisra/csci201/ssh/ /home/csci201
amisra@jb359-0’s password:
/etc/bashrc: line 67: module: command not found
/home/csci201: Permission denied
[amisra@jb359-0 ~]$ scp amisra@jb359-0:/u/csci/amisra/csci201/ssh/ /home/csci201/
amisra@jb359-0’s password:
/etc/bashrc: line 67: module: command not found
/home/csci201/: Is a directory
[amisra@jb359-0 ~]$ scp amisra@jb359-0:/u/csci/amisra/csci201/ssh/ /home/avislash/csci201/
amisra@jb359-0’s password:
/etc/bashrc: line 67: module: command not found
/home/avislash/csci201/: No such file or directory
> hey guys I’m fairly new to linux, and was hoping you guys could resolve
> an issue I’m having. I’m trying to connect to the computer/server at my
> school so I can easily copy files from there onto my laptop and copy
> back files from my laptop onto there. I’m trying to use SSH to do so,
> but here’s where I run into a problem.
>
> When I do ssh amisra@jbh3-1.cse.csusb.edu I’m able to connect fine.
>
> But when i do scp amisra@jbh3-1:/u/csci/amisra/csci201/filename, and try
> to copy it to my laptop, /home/csci201 I get:
>
> /home/csci201: Permission Denied.
>
> Now when i try to do scp amisra@jbh3-1:/u/csci/amisra/csci/201/filename
> /home/avislash/csci201 I get:
>
> /home/avislash/csci201: No such file or directory.
>
> So any idea as to what I’m doing wrong?
>
> I apologize if this has been asked before!
>
> Thanks for all your help,
>
> Avi
On Thu, 15 Apr 2010 04:56:01 +0000, avislash wrote:
> Oh no. I apologize for that, it was just a typo on my part. Good catch
> though!
No problem, you might also try changing to the directory /home/avislash/
csci201/ on your local system and then try the command with a destination
of “.”.
If you did the ssh first, then yo uwill have successfully copied the file
to itself (which may have overwritten it with a null file) - you don’t
use scp after ssh, you use it instead of ssh.