Install and Configuration OpenSSH in FreeBSD
December 3, 2010 Leave a Comment
SSH is a secure version of telnet. It’a a protocol used to access the console or command line for remote system.
1. Installation
tsuweg# cd /usr/ports/security/openssh-portable
tsuweg# make config ; make install clean
2. Configure
tsuweg# cp /etc/make.conf /etc/make.conf.old
tsuweg# echo “NO_OPENSSH = YES” >> /etc/make.conf
tsuweg# cd /etc/ssh/
tsuweg# cp sshd_config sshd_config.old
tsuweg# cp sshd_config-dist ssh_config
tsuweg# /etc/rc.d/sshd restart
Stopping sshd.
Starting sshd.tsuweg#ee /etc/rc.conf
add command : sshd_enable=”YES”
this command is used to start ssh automatically
3. Testing
tsuweg# telnet localhost 22
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
SSH-2.0-OpenSSH_5.1p1 FreeBSD-openssh-portable-overwrite-base-5.1.p1,1press enter to quit. You should now be able to connect with any SSH-capable client and any valid user account other than root.
Source : Hong,Bryan J.Building a server with FreeBSD 7.
Recent Comments