Solved

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

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

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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now