FTP from PC to VM running RHEL5 / RHEL4


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP from PC to VM running RHEL5 / RHEL4
# 1  
Old 06-04-2008
FTP from PC to VM running RHEL5 / RHEL4

Hi,

I am setting up virtual machines running Redhat Linux 4 and 5. I would like to be able to ftp files to them from my PC. I can ping ftp rac1.lyl.com fine but when I try to ftp, I get the following but no login prompt...

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Me>ftp rac1.lyl.com
Connected to rac1.lyl.com.
Connection closed by remote host.

I don't know if I need to set up ftp or make a change in a configuration file or what as I know nothing about Linux administration. I apologize if this question is too simple for this forum but I would really appreciate if you could please tell me how to do this or point me to some reference material which explains it.
# 2  
Old 06-04-2008
You might have no ftp daemon installed in the VMs.


When you log into a vm what do you get for

Code:
rpm -qa | grep ftp

# 3  
Old 06-04-2008
Quote:
Originally Posted by reborg
You might have no ftp daemon installed in the VMs.


When you log into a vm what do you get for

Code:
rpm -qa | grep ftp

Thank you for your response.

[root@rac1 etc]# rpm -qa | grep ftp
ftp-0.17-33.fc6
lftp-3.5.1-2.fc6
tftp-server-0.42-3.1
# 4  
Old 06-04-2008
ok, you don't appear to have an ftp server installed.

You probably have a few to choose from on redhat, such as vsftpd or pureftpd or wuftpd. You will need to install one of these.

On the other hand I would be very surprised if ssh is not installed, you could use a different client in wondows that supports sftp such as FileZilla - The free FTP solution and use a secure ftp session without installing any more software.
# 5  
Old 06-05-2008
Quote:
Originally Posted by reborg
ok, you don't appear to have an ftp server installed.

You probably have a few to choose from on redhat, such as vsftpd or pureftpd or wuftpd. You will need to install one of these.

On the other hand I would be very surprised if ssh is not installed, you could use a different client in wondows that supports sftp such as FileZilla - The free FTP solution and use a secure ftp session without installing any more software.
Yes, you are right that ssh is installed. I've set up rsa and dsa keys using ssh-keygen -t rsa and ssh-keygen -t dsa so that I can ssh between two vm nodes without needing to enter a password and that is working correctly.

I downloaded FileZilla and tried to sftp but I'm still having no luck. I've played around with this for hours now, and I'm not even sure if I'm doing the keys correctly or if I'm just mixing apples and oranges and maybe don't even need the keys for sftp at all.

I used a program called puttygen to generate the keys for my pc and then I made an ISO image and mounted it as the dvd drive so I could copy the public keys into the authorized_files (since I don't know another way to get the files there until I can get ftp/sftp working) . From the man pages, it sounds like if I just use 'rsa' and 'dsa' as my types in 'ssh-keygen -t xxx' then I am generating rsa2 and dsa2 keys. However, I tried ssh-2 rsa keys (1024 bit and then 2048 bit) and I tried ssh-1 rsa keys and I tried ssh-2 dsa keys and well, I'm just stumped.

I was wondering if I need to change the format of the key text generated in Windows as the format doesn't match the other entries in authorized_files so I played around with that a bit but still no luck. I did make sure that the key was one continuous line because when I tried the dsa key, it had line breaks which I removed.

And I did remember to use the corresponding private key file in FileZilla by pointing it to the appropriate .ppk file under settings.

But always...

Status: Connecting to rac1.lyl.com:22...
Response: fzSftp started
Command: keyfile "D:\RAC Project\puttygen\2048privatekeyssh2rsa.ppk"
Command: keyfile "D:\RAC Project\puttygen\dsaprivatekey.ppk"
Command: open "oracle@rac1.lyl.com" 22
Error: Connection timed out
Error: Could not connect to server
Status: Waiting to retry...

Any idea what I'm missing or doing wrong?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

running a script in a ftp session

Hi guys, I am using a script that run ftp and transfer file from my source server to the destination server. Since i have transferred my files to the destination server, now i want to run a script at the destination server. Could you please help me regarding how to run a script in a ftp... (7 Replies)
Discussion started by: jaituteja
7 Replies

2. Solaris

compatibility of solaris2.7 and rhel4

my office system having solaris 2.7 server with some workstation with solaris and some linux rhel4. is it possible to change workstation of solaris platform to linux rhel4 platform. wheather the application running on solaris can be run on rhel platform? anyone can give some idea about the same.... (1 Reply)
Discussion started by: prabir
1 Replies

3. Shell Programming and Scripting

ftp and running a script

Hi, I want to write a script that can connect from server A to server B .. so i need the following 1. sftp to server B 2. pull some files out from server B using an existing script in server A Can I do that? Thanks (3 Replies)
Discussion started by: arex876
3 Replies

4. Red Hat

Unable to install RHEL4 OR 5

hello newbie trying to install neither rhel4 or 5 on Proliant ML150 G6 i have configured the RAID on 1+0 the RAID controller of this sistem is HP SmartArray P410 have downloaded the driver disc from hp and executed the commands as the web page indicate gunzip... (3 Replies)
Discussion started by: _polken_
3 Replies

5. Red Hat

Update for RHEL4

Hi Everybody, I have some RHEL4 and RHEL5 machines, whenever i check for new updates on RHEL4 with up2date, it shows me the update which is for RHEL5 machine and not for RHEL4 machine.On the other RHEL4 machine it shows the correct update (which is for RHEL4) So i am not able to update it. Can... (2 Replies)
Discussion started by: laxmikant
2 Replies

6. Shell Programming and Scripting

ftp script is not running from CRON

Hi I have an FTP script, which ftp's the files from one unix box to another box. It works from the command when I Issue > ksh ftp.ksh when I schedule it in CRON, it is not being executed automatically. Any thoughts please Thanks Ravi. (4 Replies)
Discussion started by: ravi.balley
4 Replies

7. Shell Programming and Scripting

running script in ftp session

Dear Friends, I have this script CAP2_Launcher on suntest server. this script needs two input files in order to process them and produces an output files. I've created .bat file from windows to access the server and transfer the input files needed by the script and execute the script then pull... (3 Replies)
Discussion started by: sfaqih
3 Replies

8. Shell Programming and Scripting

Running a script for every ftp session

Hello all, I have written a shell script which would prompt the user to enter some name and a folder would be created by that name. This script should run automatically when the users provide there credentials during a FTP session and for every FTP session. And after they have provided there... (5 Replies)
Discussion started by: h3llh0l3
5 Replies

9. Shell Programming and Scripting

KSH, FTP running a set number at a time?

At work we have a script that pulls a file from a list of remote sites every 10 min. Currently it only does this ftp one sites at a time and this process takes up to 8 minutes to complete. I want to have this list of 24 sites and be able to run the ftp from up to 2 sites on the list at a time. I... (1 Reply)
Discussion started by: kofs79
1 Replies

10. UNIX for Dummies Questions & Answers

telnet, ftp is running but can't connect from outside

Yesterday, I and all my users couldn't connect to my server using ssh, telnet or ftp even though they were running (keep getting "connection timed out" error message). This morning, my partner logon from the main console, restarted sshd and xinetd (I belive he didnt restarted the server), now I... (0 Replies)
Discussion started by: Micz
0 Replies
Login or Register to Ask a Question