Configure SSH Server on DragonFlyBSD After First Time Installation

I used to access server via ssh after first time installation of an server and since I use ‘common’ IP then I get famous message.

Get rid of that message :

$ ssh-keygen -f "/home/alamsyah/.ssh/known_hosts" -R 192.168.1.200
/home/alamsyah/.ssh/known_hosts updated.
Original contents retained as /home/alamsyah/.ssh/known_hosts.old

Then I try ssh

$ ssh alam@192.168.1.200
The authenticity of host ’192.168.1.200 (192.168.1.200)’ can’t be established.
ECDSA key fingerprint is 25:e4:32:fb:04:35:f8:63:fb:28:d9:55:2d:51:1e:8d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ’192.168.1.200′ (ECDSA) to the list of known hosts.
Permission denied (publickey).
$

Ups, Permission denied.

After google and read manual I got solution for editing ssh configuration

configure ssh dflybsd 1 Configure SSH Server on DragonFlyBSD After First Time Installation

Yes, ee is exist here in case you wondering about text editor here icon smile Configure SSH Server on DragonFlyBSD After First Time Installation

config ssh dflybsd 2 Configure SSH Server on DragonFlyBSD After First Time Installation

Change “PasswordAuthentication” value from no to yes and save the file starting by press ESC button.

Restart ssh service

config ssh dflybsd 3 Configure SSH Server on DragonFlyBSD After First Time Installation

Retry ssh access from terminal or putty

$ ssh alam@192.168.1.200
alam@192.168.1.200′s password:
Last login: Thu Jan 16 11:24:46 2014
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California.  All rights reserved.

DragonFly v3.6.0-RELEASE (GENERIC) #10: Sun Nov 24 07:57:21 PST 2013

Welcome to DragonFly!

Having trouble using fetch through a firewall?  Try setting the environment
variable FTP_PASSIVE_MODE to yes, and see fetch(3) for more details.
> su
Password:
dflybsd#

Great. This step give me more confident to explore the machine.