The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
RHEL5 Kickstart Problem... HELP! mkono Linux 2 05-30-2008 06:42 AM
ESC sequence on RHEL5 amit1_x Linux 2 04-28-2008 08:37 AM
Installing Fonts on RHEL4 ankurjain Linux 1 03-04-2008 11:24 PM
Oracle 10g Can Not Login (after Restart Rhel4) sadiquep Linux 2 03-04-2008 01:50 AM
X11 forwarding problem between 2 RHEL4 machines with SSH panggou Linux 1 02-26-2006 11:10 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2008
Registered User
 

Join Date: Jun 2008
Posts: 3
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-04-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,503
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
Reply With Quote
  #3 (permalink)  
Old 06-04-2008
Registered User
 

Join Date: Jun 2008
Posts: 3
Quote:
Originally Posted by reborg View Post
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
Reply With Quote
  #4 (permalink)  
Old 06-04-2008
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,503
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.
Reply With Quote
  #5 (permalink)  
Old 06-04-2008
Registered User
 

Join Date: Jun 2008
Posts: 3
Quote:
Originally Posted by reborg View Post
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?
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0