ssh-ing to port 80.

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat ssh-ing to port 80.
# 1  
Old 05-01-2005
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  
Old 05-01-2005
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  
Old 05-02-2005
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  
Old 05-05-2005
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?).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Ssh Connection refused port 22

Hello everybody, I'm a begginer using Solaris so I really need your help. I'm trying to copy a file using scp from a Red Hat Linux 6 server to an Oracle Solaris 11 machine and all i get is an error "" ssh: connection to host <HOST_IP> port 22: Connection refused lost connection. Thanks for... (6 Replies)
Discussion started by: limaco82
6 Replies

2. SuSE

Unable to putty using ssh at port 22

I installed linux on one of my system and assigned valid network ip to it. I am able to connect to net properly. But when I try to putty this system from another system using ssh at port 22 then it gives me connection timed out error. When I ping the system it responds fine but still unable to... (2 Replies)
Discussion started by: rupeshkp728
2 Replies

3. Cybersecurity

Different ssh fingerprints on server vs the one on port 22

Hi Guys, My certificate in /etc/ssh is different to what is on port 22. username@server:~$ ssh-keyscan -p 22 127.0.0.1 > /tmp/rsa.tmp # 127.0.0.1 SSH-1.99-OpenSSH_33.33 username@server:~$ ssh-keygen -lf /tmp/rsa.tmp 1024 46:something..................... 127.0.0.1... (0 Replies)
Discussion started by: mu100
0 Replies

4. UNIX for Dummies Questions & Answers

Public Key Authentication over SSH and Sudo-ing Implementation

Hi, We are currently implementing an Identity Management application which has several Unix systems as its target system. A pre-defined connector will be installed to provide connection between the Identity Management application and the Unix target system. The connection will use Public Key... (1 Reply)
Discussion started by: tristanD
1 Replies

5. IP Networking

SSH Port Forwarding - sharing the same port

Hi Linux/Unix Guru, I am setting Linux Hopping Station to another different servers. My current config to connect to another servers is using different port to connect. e.g ssh -D 1080 -p 22 username@server1.com ssh -D 1081 -p 22 username@server2.com Now what I would like to have... (3 Replies)
Discussion started by: regmaster
3 Replies

6. Shell Programming and Scripting

grep'ing and sed'ing chunks in bash... need help on speeding up a log parser.

I have a file that is 20 - 80+ MB in size that is a certain type of log file. It logs one of our processes and this process is multi-threaded. Therefore the log file is kind of a mess. Here's an example: The logfile looks like: "DATE TIME - THREAD ID - Details", and a new file is created... (4 Replies)
Discussion started by: elinenbe
4 Replies

7. UNIX for Dummies Questions & Answers

How Do I Reset An Ssh Port

Specs: Computer = 2003 Dell Zeon with 2 SCSI drives 1 gig ram OS = SCO Open Server 5.0.7 patched up SSH = Open SSH, not sure what version, new within a year. How do I reset an SSH port 22 that is not responding to incoming connections, without having to restart the computer? Any help... (3 Replies)
Discussion started by: PCTECH
3 Replies

8. UNIX for Dummies Questions & Answers

Setting SSH port

How can I switch the port which SSH listens on? (1 Reply)
Discussion started by: Spetnik
1 Replies

9. UNIX for Dummies Questions & Answers

opening ssh port

I've got openssh installed but when i try to ssh to my machine i get a "port 22: connection refused" message. Do I need to add something to the hosts.allow file to allow ssh access in? I'm running Mandrake 8.1 (5 Replies)
Discussion started by: gasaraki99
5 Replies

10. UNIX for Dummies Questions & Answers

color in emacs... when ssh-ing to my FreeBSD box

I'm trying to be able to get color with my SSH sessions (I'm using PuTTY) when using Emacs... but I've been unable to. Someone told me to change the Terminal-type string to "xterm-color" and I've tried that... but I still can't get any color. Any and all help will be appreciated. (4 Replies)
Discussion started by: xyyz
4 Replies
Login or Register to Ask a Question