ssh
From NetBSD Wiki
Contents |
What is ssh
ssh (SSH client) is a program for logging into a remote machine and for executing commands on a remote machine. It is intended to replace rlogin and rsh, and provide secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP ports can also be forwarded over the secure channel.
ssh on NetBSD
ssh is developed and maintained by the OpenBSD project and is imported into the NetBSD tree, whenever a new version is released. Since openssh is third party software, you can find it in the dist directory.
ssh is part of the NetBSD base system, which means it is installed by default. Do not forget to start sshd daemon. You can edit /etc/rc.conf file and add line:
sshd=YES
You can also install ssh (openssh) from pkgsrc, which may provide a newer version, than the one in the base system. You can check the version of ssh by entering
$ ssh -V OpenSSH_4.6 NetBSD_Secure_Shell-20070310, OpenSSL 0.9.8e 23 Feb 2007
root access
By default ssh on NetBSD is configured to deny root logins. To gain root privileges you should use su after you have logged in as a user.
If you really need to login as root, which is usually not necessary, you can uncomment and set the option
PermitRootLogin yes
in the file /etc/ssh/sshd_config or /usr/pkg/etc/ssh/sshd_config, if you are using openssh from pkgsrc.
