Copying a file from secure host to desktop


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Copying a file from secure host to desktop
# 1  
Old 06-08-2015
Copying a file from secure host to desktop

I have extremely limited programming experience so please go slowly!

I am remotely logged in to a secure network cluster via my username at my school through terminal. I'm trying to download a file from my account on the cluster to my desktop on a guest account on my mac.

I tried doing this: help.ubuntu.com/community/SSH/TransferFiles
Code:
scp test guest@myIPaddress: Desktop/

where test is the name of the file i want to download, guest is my username on the computer I'm typing on (as opposed to my username on the server I'm remotely logged into), and myIPaddress is my ip address (the number string). (I had to put a space between the colon and Desktop because the forum was displaying it as a smilie face...it doesnt have a space in what i entered on terminal)

The IP I got by going to system preferences>network and the only options were AirPort (which doesn't have an ip address listed), Parallels Host-Guest, and Parallels NAT so I used the ip address for Parallels Host-Guest; then I tried going to AirPort then TCP/IP and using that IP address and I got the same error message

I get the following error message:
Code:
ssh: connect to host myIPaddress port 22: Connection timed out
lost connection

...help?
Moderator's Comments:
Mod Comment Please use CODE tags (not bold font) when displaying sample input, output, and code segments.

Last edited by Don Cragun; 06-08-2015 at 04:21 PM.. Reason: URL added and Bold tags changed to CODE tags.
# 2  
Old 06-08-2015
Typically you would do this in the form:

Code:
scp guest@myIPaddress:/path/to/test Desktop/

I'm not a Mac user, so I'm assuming Desktop/ is a valid path for the destination of the file.

it's always scp source destination but the user@remotemachineIP portion can be either in the source or the destination depending on whether you're copying to or from the machine you're issuing the command from.
Code:
scp user@remotemachineIP:/path/to/source/file /path/to/local/destination

or
Code:
scp /local/path/to/file user@remotemachineIP:/path/to/remote/destination/file

 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Disable copying secure key's to remote system

Hi, We all know as we can connect remote system through ssh without entering username and password by copy the public key to remote host using ssh-copy-id. But my query is to i want to restrict the user as do not implement this feature.Whenever he is trying to login, he has to enter his/her... (1 Reply)
Discussion started by: mastansaheb
1 Replies

2. Red Hat

secure file permissions!

Hi experts, I have RHEL6 system which I want to tighten by having strict permissions for some important files. Looks like, RHEL has below permissions by default:- /etc/passwd:644:root:root /etc/shadow:000:root:root /etc/services:644:root:root /etc/hosts.allow:644:root:root I am... (10 Replies)
Discussion started by: shreeda
10 Replies

3. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

4. UNIX for Advanced & Expert Users

Secure FTP corrupts file

Sun Microsystems Inc. SunOS 5.9 I am hoping someone has come across this before. I have a script that transfers several gz files via Secure FTP across to an SFTP server on an NT machine. The transfers show as successful: pack12_200812160337.tar.gz | 768kB | 768kB/s | ETA: 00:00:01 | 37%... (5 Replies)
Discussion started by: ronnie_uk
5 Replies

5. Solaris

No such file in secure directories ?

Dear All, I have a problem with starting process of crystal report by running script(ccm.sh, bobjerestart.sh). I found these error ld.so.1: nohup: warning: libhoard.so.1: open failed: No such file in secure directories ld.so.1: sh: warning: libhoard.so.1: open failed: No such... (0 Replies)
Discussion started by: unitipon
0 Replies

6. Shell Programming and Scripting

Secure File Transfer Protocol

Hi, Is there any protocol other than SFTP to transfer the file using secured connection SSH. ? Regards, Arthik (2 Replies)
Discussion started by: arthikbabu
2 Replies

7. Shell Programming and Scripting

Question about secure file transfer

Hi all, I am running a large scale business and some time I have to transfer large and very important data files to my business partner. I fear about my data because there are many of my business competitors who will definitely try to steal my important data. So there is huge amount of risk... (0 Replies)
Discussion started by: camden
0 Replies

8. Solaris

Secure FTP Problem using Sun SSH on Client system F-Secure on Server system

I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details: FTP Client has Sun SSH. FTP Server has F-Secure. I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error scp:... (2 Replies)
Discussion started by: ftpguy
2 Replies

9. IP Networking

QNX host cannot ping SCO host, vice versa

The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Discussion started by: gavon
2 Replies
Login or Register to Ask a Question