The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
port 23 Sayantan High Level Programming 2 01-17-2008 12:43 PM
disabled telnet now need port 23 or port 22 panzerkw SUN Solaris 3 03-05-2007 03:08 PM
Port big123456 Linux 1 11-22-2005 01:44 AM
BitTorrent port 6969 blocked... how to get around the blocked port PenguinDevil IP Networking 1 05-06-2004 12:03 AM
port 110 jellegard UNIX for Dummies Questions & Answers 2 10-12-2003 11:04 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-01-2005
effigy's Avatar
effigy effigy is offline
Registered User
  
 

Join Date: Aug 2003
Location: IL, USA
Posts: 35
ssh-ing to port 80.

i am using redhat 8.0 and trying to connect to my local port 80 to run some HTTP. i know this can easily be done with telnet localhost 80, however telnet is not running, ssh is. ssh localhost -p 80 gives me a "Connection refused" error.

i've been trying to find out more information on the web, but the majority of topics are about tunneling; nearly everytime i see topics about telneting to 80, the response is "use ssh," but there are no examples of how. am i using the correct command/syntax? is there a configuration problem elsewhere?

thank you.
  #2 (permalink)  
Old 05-01-2005
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
effigy,

You will not be able to ssh to a http port and retrieve content. Where as telnet will allow you to send/recieve commands w/o a fixed authentication method, the ssh client will always attempt to connect to a sshd daemon. It really sounds like you have a crippled telnet client - might even just be a shell script. Type "which telnet" and then for whatever location it shows, type "file <path_to_telnet>/telnet" and see if it is a shell script.

Cheers,

Keith
  #3 (permalink)  
Old 05-02-2005
jolok jolok is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 64
Telnet doesn't really have to "be running", the way you mean. To test whether a machine is running a service on a port, you can generically 'telnet host port'. The whole "use ssh" thing really means "if you're logging into you machine remotely, use ssh, because it's encrypted, telnet isn't, so you're potential passing a plain-text password over the 'net." which doesn't pertain here. For your purposes, 'telnet localhost 80' will do just fine. You'll want to use ssh when you're actually logging into the machine remotely.
  #4 (permalink)  
Old 05-05-2005
effigy's Avatar
effigy effigy is offline
Registered User
  
 

Join Date: Aug 2003
Location: IL, USA
Posts: 35
thanks everyone. here is the information:

which telnet
/usr/bin/telnet
file /usr/bin/telnet
/usr/bin/telnet: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped
telnet 127.0.0.1 80
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

however, telnet works if i use my box's assigned static ip. i assume this is because i haven't told apache to listen to 127.0.0.1 (or does it always?).
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0