[NTLUG:Discuss] SSH
Alton R. Pouncey, II
alton at trainers-r-us.com
Fri Jan 18 18:33:54 CST 2002
On Fri, 2002-01-18 at 17:57, Matt Caldwell wrote:
> On Friday 18 January 2002 05:47 pm, you wrote:
> > At 04:23 PM 1/18/2002 -0600, Matt Caldwell wrote:
> > >I have installed the version of SSH that came with the Mandrake 8.1
> > >install. I am trying to access my box at home through work. I have set
> > >/etc/hosts.deny to ALL:ALL, and then /etc/hosts.allow to include the
> > >domain of my company. Now, my company has a Cisco PIX firewall and will
> > >not let my PC connect to my box. Does anyone know through what port my
> > >BOX would be sending data back to my PC at work?? I do use PuTTY, and I
> > >can ping my box, but I get a network error when I try to connect with
> > > PuTTY.
> >
> > port scan your box with something like superscan (founstone.com) or nmap
> > (insecure.org) and see if port 22 is open.
> >
> > from the Linux box can you ssh to localhost? or from anywhere else?
> >
> > Install cygwin and run ssh -v to get more details of why it is failing (if
> > you are sure it is getting to the port)?
> >
> > ALso, the firewall at your work may block 22 outbound, not uncommon. The
> > src port for the returning packets is more or less random.
> >
> > >Thank You,
> > >Matt Caldwell
>
> Thanks, I just checked my services, and I was using port 22. Port 22 is
> blocked on the firewall. So, I commented out Telnet and changed sshd to port
> 23 in my /etc/services. Is that all I need to do,, other than restart inetd?
> --Matt
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
Changing your /etc/services file won't help. You need to edit your
/etc/ssh/sshd_config file and change the line that says:
Port 22
to
Port 23
Then restart the sshd service:
/etc/rc.d/init.d/sshd restart
--
Alton R. Pouncey, II
SCSA, SCNA, CCNA, CIW Associate
Director of Information Services
'print pack("H*","616c746f6e40747261696e6572732d722d75732e636f6d"), $/'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://ntlug.org/pipermail/discuss/attachments/20020118/6bcaace4/attachment.bin
More information about the Discuss
mailing list