Solved

unable to connect to virtual machine through ftp /telnet

Posted on 2006-07-10
33
4,915 Views
Last Modified: 2013-12-21
hi
I have RHEL 4 installed on VMWare 5.5. where host is windpws XP.
I wish to connect to Linux Virtual machine using ftp and move some files from windows host to linux guest.
the ip of my machine is 192.168.203.11 (lets say)
so whenever at cmd in windows i issue

ftp 192.168.203.11 it says:
unknown error: cannot connect...

i have  installed ftp package on linux (for sure)
but if some other settings are required to be done after that ,,i have not done those. So kindly tell what are the required settings...
Also i have configured VMWAre NAT settings and mentioned three ports there...
i.e. 21 (ftp) 22 telnet and 23
n i m not able to connect to the Virtual machine either thru telnet or ftp
..

0
Comment
Question by:aman_greval
  • 17
  • 16
33 Comments
 
LVL 24

Expert Comment

by:slyong
ID: 17078394
Have you let down your RHEL 4 firewall for ftp?  Try disabling it first and ftp.. if it works, then open up the ftp port in the firewall..

# service iptables stop

then try ftping from Windows...
0
 

Author Comment

by:aman_greval
ID: 17079030
no i have not enabled firewall..
i selected no firewall during installation
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079098
Have you start up the ftp service then?  Can you ftp from the RHEL to connect to itself?  From your RHEL do:

$ ftp localhost

0
Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

 

Author Comment

by:aman_greval
ID: 17079172
it says
connection refused
 :(
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079181
Go to /etc/xinetd.d/ and find something with ftp (depending on what you installed).  edit the file and change the line disabled=yes to no then restart you xinetd by:

# service xinetd restart

Then try to ftp from RHEL again.

0
 

Author Comment

by:aman_greval
ID: 17079196
i can c gssftp and tftp inside the /etc/xinetd.d directory.. which file shd i edit
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079202
that's the file.. gssftp... look for the line disabled = yes and change yes to no.  Then restart your xinetd as about mentioned
0
 

Author Comment

by:aman_greval
ID: 17079206
also just before reading ur reply i read this command in a pdf n executed

#kill -HUP 'cat /var/run/inetd.pid'
#ftp localhost... Acc to pdf it shd say connected now but for me it still says
connection Refused

pls also tell how to restart the same process
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079217
RHEL 4 doesn't use inetd, it uses xinetd.  Also you command:
# kill -HUP 'cat /var/run/inetd.pid'
is wrong it should be ` instead of '.

So what you did has no effect on the system.  Restart you xinetd service using:

# service xinetd restart
0
 

Author Comment

by:aman_greval
ID: 17079231
ok i did and  made changes in gss too..
now
#ftp says
Connected to system
Ftp server ready
using suthentication type GSSAPI
GSSAPI accepted a uthenticaiton type:
Error major:Miscellaneous failure
Error minor: no credentials cache found
GSSAPI error: intialising context authentication failed
KERberos V4 failed
you have no tickets cached
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079243
What does your gssftp say.  Can you cut and paste it here?
0
 

Author Comment

by:aman_greval
ID: 17079265
i cant copy & paste  as it is on vmware but i will type it

service ftp
{
flags=REUSE
socket_type=stream
wait=no
user=root
server=/usr/kerberos/sbin/ftpd
server_Args= -l -a
logon_failure += USERID
disable=no
}
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079268
The server_Args says that it needs strong authentication.  change the line

server_Args= -l -a

to

server_Args= -l

Then restart your xinetd again using "service xinetd restart" then you should be able to ftp from local
0
 

Author Comment

by:aman_greval
ID: 17079291
I did that...
Same error again..
Connected to system
Ftp server ready
using suthentication type GSSAPI
GSSAPI accepted a uthenticaiton type:
Error major:Miscellaneous failure
Error minor: no credentials cache found
GSSAPI error: intialising context authentication failed
KERberos V4 failed
you have no tickets cached.....
Then it prompts for name
Name(localhost:root):   oracle   I have user oracle as a member of dba group
Prompts for password:    I entered that...
then i goes to halt...and cursor blinks but shows nothing


0
 

Author Comment

by:aman_greval
ID: 17079299
wait slyong....
just now it said.. user oracle logged in
remote system type is unixusing binary mode to transfer the files...
ftp>

that means i m connected...

:) congrats to u too

now i wish to transfer files from windows to linux on vmware using ftp..
i tried to connect to ftp on windows saying

c:\ >ftp 192.168.203.11
it says ftp connect unknown error number.
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079301
Could you wait while the cursor blinking.  The ftp server will either close the connection or show you something.
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079320
you have windows firewall up?
0
 

Author Comment

by:aman_greval
ID: 17079490
no i guess..
could u pls tell how to confirm.

Also,
On linux it seems i m able to conenct to oracle user but after getting a long error list...
any workarounds...
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079641
hi aman_greval,

To check windows firewall if it is on, go to Control Panel -> Security Center.  Also I am not sure if you install any other firewall like ZoneAlarm, Internet Secure, etc.  It is pretty hard to track it down.

The error message is just saying that you are not using Kerberos credentials, it is not really a problem.

You may want to try using ssh/sftp instead of ftp.  Go to http://www.ssh.com/support/downloads/secureshellwks/non-commercial.html to download a ssh client for Windows, install it, then use "Quick Connect" login as oracle and give the password.. Then click on the "Windows" menu item and select "New File Transfer".  That is more secure then ftp and simpler.
0
 

Author Comment

by:aman_greval
ID: 17079919
i downloaded this n installed this but m not able to find quick connect option..i chkd ssh2_admin but m unable to connect.
 
I wish to install 10g Applciaiton server on linux. the software files are in windows d:(4 .cpio files wotrth 2GB)  i wish to transfer these files to linux. Thats y i m looking for FTP which is not working. Pls tell me any means to transfer these files to linux so that i can install the software there.
FTP was working perfectly when i had vmware version 4.5. i uninstalled that and installed 5.5.1 on it.
I am working on a DELL laptop with 2GB RAM and windows xp OS. installed vmware 5.5.1 on it and RHEL ver 4.0.
0
 
LVL 24

Expert Comment

by:slyong
ID: 17079977
Did you download this: http://ftp.ssh.com/pub/ssh/SSHSecureShellClient-3.2.9.exe

There is a "Quick Connect" or you can use the Menu item "File --> Quick Connect"
0
 

Author Comment

by:aman_greval
ID: 17080037
i m trying ip 192.168.203.11
it says unable to connect.
The host may be down or
this may be due to wrong network configuration
sometimes this can happen due to misconfigured firewalls...


RHEL on linux is up n running on vmware...also thru vmware i m able to connect to 192.168.203.11 as well as localhost
0
 
LVL 24

Expert Comment

by:slyong
ID: 17080039
Can you ping 192.168.203.11??
0
 

Author Comment

by:aman_greval
ID: 17080068
no request time out.destination host unreachable
0
 
LVL 24

Expert Comment

by:slyong
ID: 17080092
Hi Aman,

You have all the setup done properly.  You have to check your vmware installation to see what kind of network that you setup and make sure that your windows is not running firewall.  My advise is that if you are not familiar with those options, you are better off burning the files into a DVD to transfer them.  The network between your XP and Linux doesn't seem to be working.
0
 

Author Comment

by:aman_greval
ID: 17080119
thanks sylong...
but any other workaround you can suggest
0
 
LVL 24

Expert Comment

by:slyong
ID: 17080213
I am really not familiar with VMWare, someone might be able to help you out by telling you how to setup VMWare.  Or you can read the documentation here http://www.vmware.com/support/ws55/doc/ws_net.html.  You have to at least get the XP to be able to ping the Linux machine on VMWare.
0
 

Author Comment

by:aman_greval
ID: 17080224
ok thanks slyong...
You have been of great help...

0
 
LVL 24

Expert Comment

by:slyong
ID: 17080226
Sorry couldn't help you further.. hope you can get it up and running
0
 

Author Comment

by:aman_greval
ID: 17080251
well i have raised i query on the same to networking experts.. hope to get some resolution there...
u want me to accept the answer and close this?
or
after the host starts pinging VM, i can come baq to u n ask for what next?   :-)
0
 
LVL 24

Accepted Solution

by:
slyong earned 500 total points
ID: 17080255
Is ok if you would like it open.  You can always come back to if you have any further queries.
0
 

Author Comment

by:aman_greval
ID: 17081206
hi alyong
i m able to ping through ftp now
problem was with the virtual network settings of vmware
the network shd be bridged instead of NAT
0
 
LVL 24

Expert Comment

by:slyong
ID: 17084502
hi aman,

good to hear that.. so could you ftp or ssh now?
0

Featured Post

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question