Solved

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

Posted on 2007-03-30
2
242 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Apache application gives "Forbidden" message 5 57
awk sed variable in file 3 38
remove one line from a file in solaris 8 29
linux SFTP 8 44
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

773 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