?
Solved

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

Posted on 2007-03-30
2
Medium Priority
?
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 2000 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

770 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