SCP -r from Secure FTP site


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers SCP -r from Secure FTP site
# 1  
Old 01-26-2009
SCP -r from Secure FTP site

Hi all,

My problem is simple. I would like to download the contents of a directory on an ftp site. I can access the site through windows, but there are many files and it would be too tedious to click and download each file. Thus, I am trying to use

scp -r username@xx.xx.xxx.xxx:/directory .

but this is not working. I am not being prompt for a password, and the connection is timing out.

I can access the ftp site through windows internet explorer fine. The address is in the form https://xx.xx.xxx.xxx/directory

I am kind of new at this so I think I might be missing a step or something.

Thanks, in advanced.
# 2  
Old 01-26-2009
Quote:
Originally Posted by cpabrego
scp -r username@xx.xx.xxx.xxx:/directory .

but this is not working. I am not being prompt for a password, and the connection is timing out.

If you don't have to issue a sudo command...

scp -r <username>@xx.xx.xx.xxx.xxx:/<dir>/<space> .

Should prompt for a password.
# 3  
Old 01-26-2009
Question

Quote:
Originally Posted by nixnoob
If you don't have to issue a sudo command...

scp -r <username>@xx.xx.xx.xxx.xxx:/<dir>/<space> .

Should prompt for a password.

Well to be honest I do not know if I need to issue a sudo command. I believe the commands you listed are the same as the one's I used in my original post. I am getting a message that says the following:

ssh: connect to host xx.xx.xxx.xxx port 22: Connection timed out, any ideas?
# 4  
Old 01-26-2009
Quote:
Originally Posted by cpabrego
Well to be honest I do not know if I need to issue a sudo command. I believe the commands you listed are the same as the one's I used in my original post. I am getting a message that says the following:

ssh: connect to host xx.xx.xxx.xxx port 22: Connection timed out, any ideas?
Connection time out could mean just about anything... might want to ask the sftp site host if it allows ssh connections for a start.

Your command was this:
scp -r username@xx.xx.xxx.xxx:/directory .

My suggestion is this:
scp -r <username>@xx.xx.xx.xxx.xxx:/<dir>/<space> .

I should have been more specific and told you that you're missing that second / before the <space> <dot>. That will grab the directory and all of its contents...just be sure its going to a directory you can write to.
# 5  
Old 01-26-2009
is sshd running on the host you are trying to connect to? if a timeout appears it don't looks like it does...
# 6  
Old 01-26-2009
Thanks for the info guys, I did not realize the host was required to enable ssh. They very well could be the issue, I can verify thanks!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Secure Copy, scp

Is there a way we can avoid asking of password when we transfer file from one Unix server to another server using SCP command. Or Is is possible that the batch file in unix in which I am giving the SCP command takes the password and transfer the files automatically without me typing the... (1 Reply)
Discussion started by: Pash
1 Replies

2. Shell Programming and Scripting

Help with Secure Copy (SCP) command

Hi, I am in the process of converting ftp transfres to SCP in my scripts. Have some doubts with SCP command 1) currently script puts a list of ftp commands in afile and paasses the file to ftp as input echo "user abc pwd" >inputfile echo "ls *" >> inputfile echo "quit" >> inputfile... (5 Replies)
Discussion started by: justchill
5 Replies

3. AIX

How to secure ftp in AIX

Hi, the default ftp that comes with AIX5L is not secured as far as i know. How to install and use the secured FTP in AIX? Linux these days uses vsftpd daemon(very secured FTP daemon) is there VSFTPD for AIX? if there is any where can i download it from? thanks and regards Pchangba (1 Reply)
Discussion started by: pchangba
1 Replies

4. UNIX for Advanced & Expert Users

Setup Secure FTP

Hi All, Please help me to setup the secure Ftp. I want to build a ftp which should ask the Login id and password, and one thing more a particular login should be enable to read/write only his/her directory i.e,s a user should not be able to open the other directories in the ftp.Please help me... (1 Reply)
Discussion started by: akhtar.bhat
1 Replies

5. 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

6. Solaris

Secure method - get files - no ssh/scp

I have two servers. server 1 - secure server running ssh only on solaris 9. I can installed whatever I need here as long as its reasonably secure server 2 - running telnet (no ssh/scp installed) - I cannot change much on this server and cannot install much.. I need to pull some files from... (3 Replies)
Discussion started by: frustrated1
3 Replies

7. UNIX for Dummies Questions & Answers

SCP - Secure copy with Certificates exchange.

Will an scp command always copy the files in an encrypted mode? After trying this, I have got message Host Key not found in the database. & Unable to write host key in my user directory. Please anyone has an idea, how we can have secure copy with certificates exchanged successfully? (0 Replies)
Discussion started by: videsh77
0 Replies

8. HP-UX

ftp to secure server

How to ftp file to secure server. Can somebody pls guide. (1 Reply)
Discussion started by: rkkiran
1 Replies

9. Shell Programming and Scripting

how to use SCP (secure copy) in UNIX

i have to transfer a file from one server to another. say, my script is running on server 'A' and one file has to be transferred from server 'A' to server 'B' using SCP. i am using it as: sourceserverA> scp -P <port> userid@serverBhostname:/put/this/here <sourcefile path> but it is giving... (1 Reply)
Discussion started by: dharmesht
1 Replies

10. UNIX for Dummies Questions & Answers

looking for a secure copy program (scp)

Hi could someone tell me where to find a secure copy prog. for unix and windows thnx a lot helios (4 Replies)
Discussion started by: helios
4 Replies
Login or Register to Ask a Question