Try using the --P flag to select a non-priviledged port above 1023 to send on. Since
the ssh server will send it's traffic back to you on the port you came in from, it may
be that the firewall there is dropping packets.
Also, can you telnet to the host on 22? I usually see a message about what ssh
version is in use on port 22, when I try to telnet to it. ex:
telnet ag 22
Trying 131.45.25.4...
Connected to [EMAIL PROTECTED]
Escape character is '^]'.
SSH-2.0-2.0.13 (non-commercial)
That might help you determine if port 22 is open on the hosts firewall or router.
I've also used tcpdump to watch and see if packets are being sent back by the host.
>>> "Carl J. Nobile" <[EMAIL PROTECTED]> 09/01 5:12 AM >>>
Hi Hiranya,
There could be a hundred reasons for this. Are you going through a
gateway or a firewall? Are they using SSH1 or SSH2 on the remote host?
Try SSHing to yourself like this:
$ ssh localhost
If that works then something on the other end is not letting you in. Port
22 could be blocked for some reason.
On 31-Aug-00 Hiranya Peiris wrote:
> I am trying to use ssh 1.2.27 (compiled from source) under RedHat 6.2
> x86. I am unable to make a connection. The debug option gives this:
>
> [hiranya@(none) hiranya]$ ssh -v -l hiranya fury.princeton.edu
> SSH Version 1.2.27 [i686-unknown-linux], protocol version 1.5.
> Standard version. Does not use RSAREF.
> (none): Reading configuration data /etc/ssh_config
> (none): ssh_connect: getuid 500 geteuid 0 anon 0
> (none): Connecting to fury.princeton.edu [128.112.24.34] port 22.
> (none): Allocated local port 1023.
>
> After a while I get a message saying connect: Connection timed out
>
> Other facts that may be relevant:
>
> 1. I am connecting through a DSL line (Bell Atlantic Infospeed) using
> PPPoE.
> 2. telnet,ftp,http,ping,all work correctly.
> 3. The remote server uses ssh1 protocol:
> SSH Version 1.2.26 [sparc-sun-solaris2.6], protocol version 1.5.
> Standard version. Does not use RSAREF.
> 4. I have also tried ssh1.2.26(wouldn't compile), and ssh1.2.30 (same
> problem as above).
> 5. In /var/log/messages, while the above is occurring, I get errors
> like:
> Aug 31 17:12:29 (none) kernel: Packet log: input DENY ppp0 PROTO=6
> 128.112.24.34:22 141.150.201.224:1023 L=60 S=0x00 I=50529 F=0x4000 T=51
> (#2) Aug 31 17:14:29 (none) kernel: Packet log: input DENY ppp0
> PROTO=6
> 128.112.24.34:22 141.150.201.224:1023 L=60 S=0x00 I=50545 F=0x4000 T=51
> (#2)
>
> I am a newbie. Please help!
>
> Hiranya
------------------------------------------------------------------------
E-Mail: Carl J. Nobile <[EMAIL PROTECTED]>
Date: 01-Sep-00 Phone: 315-453-2912 Ex. 5336
Time: 08:04:39 Fax: 315-479-0859
Software Engineering Group -- AppliedTheory Corp.
224 Harrison Street, 6th Floor, Syracuse, NY 13202
------------------------------------------------------------------------