cannot ssh into a box with DHCP assigned IP address
Fleuriot Damien
ml at my.gd
Wed Feb 20 09:31:25 UTC 2013
On Feb 20, 2013, at 10:28 AM, Anton Shterenlikht <mexas at bristol.ac.uk> wrote:
> I have a laptop with FreeBSD -current,
> with ip address assigned via DHCP.
> The laptop has neither a static ip address,
> nor a domain.
>
> I can ping the laptop fine, but cannot
> ssh into it. The sshd is running, /etc/ssh/ssd_config
> seems fine, /etc/hosts.allow is fine.
> However, /etc/hosts is just the default:
>
> #
> ::1 localhost localhost.my.domain
> 127.0.0.1 localhost localhost.my.domain
> #
>
> Is it the lack of a domain that prevents
> me from getting ssh access?
> I try to ssh with just a dynamic ip address,
> for which ping seems to work fine.
> Or is the problem somewhere else?
>
> I'm not even sure I'm asking the right
> questions.
>
> Thanks
>
> Anton
First, check what ports SSH listens on:
sockstat | grep ssh
Then, assuming SSH indeed listens on *:22 , check if you have a firewall running that could be preventing packets from reaching your box.
By the way, do you get a login prompt at all, over SSH, or just a plain timeout or connection reset ?
More information about the freebsd-questions
mailing list