ssh: port 22: connection refuused
Tim Daneliuk
tundra at tundraware.com
Thu May 6 17:32:25 UTC 2010
On 5/6/2010 12:21 PM, Gary Kline wrote:
>
> can anybody help me with ne of my last problems: getting ssh Into
> my new comuter? i am able to ssh outside. need to scp my config
> files over.
>
> sshd is running on "zen"
>
>
This generally involves two or three steps:
1) Make sure /etc/rc.conf has this in it:
sshd_enable="YES"
2) Make sure /etc/hosts.allow permits access
to your machine via ssh. Something like this:
sshd: 192.168. a_host-name.com an.ip.add.ress :ALLOW
Some people do this:
sshd: ALL :ALLOW
That's fine if the machine sits on a trusted LAN, but I don't
much like this for machines that are internet-facing ... it
just provides another vector for attack. So, for such machines,
I explicitly name the address and names that are permitted ssh access.
3) If you're running a firewall, make sure that the sshd ports
(22/tcp and 22/udp) are open for those machines/addresses
you want to connect into your FreeBSD box.
If you are still having trouble, go to the client machine
and invoke your session like this:
ssh -vvvvv your_freebsd_machine
It will barf out a bunch of interesting information about why the connection
isn't working that may help you figure out what's going on.
Happy Trails,
----------------------------------------------------------------------------
Tim Daneliuk tundra at tundraware.com
PGP Key: http://www.tundraware.com/PGP/
More information about the freebsd-questions
mailing list