Solved

BSD - CANT SSH IN REMOTELY IF I DONT LOG IN LOCALLY FIRST

Posted on 2007-03-30
2
243 Views
Last Modified: 2013-11-22
Im running a server with FreeBSD 6.2-RELEASE.

Problem:
Unless i log into the server once, it wont let me log into it using ssh. Once i log into it locally then i could log remotely to it via SSH. Will not work until i log into it locally first. If i need to restart the server remotely i wont be able to log back into it unless i go physically to it and log it once.

I know this is a config issue. Can you help and do i need to post any config file here?

Thanks!
0
Comment
Question by:speednow
2 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 18827873
Looks like your DNS does not serve reverse PTR zones. It will log in after a time, a half-minute or so

edit /etc/ssh/sshd_config

and make sure you have UseDNS no

after that run /etc/rc.d/sshd restart

Now you should be able to log in just fine.
0
 

Author Comment

by:speednow
ID: 18828676
Worked perfectly now.. Thanks a lot..
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question