How to run OpenBSD 6.3 instance on VultrShare on Twitter
Create a new instance and select OpenBSD 6.3 as operating system. After a minute you can login on your new instance over ssh.
First we set the installurl and then we should patch the machine with
/etc/installurlfile contains a single line specifying an OpenBSD mirror server URL.
syspatchis a utility to fetch, verify, install and revert OpenBSD binary patches.
Now we create a new user to the system with
adduser and then we add them to
doas, we can execute commands as another user, for example as root.
Add a ssh key to you new user. Open a Terminal on your local machine and execute
Switch back to your OpenBSD instance and edit the ssh daemon
We don’t allow login over ssh as root
We disable login with passsword over ssh
Now check the configuration with
and restart the ssh daemon with
Now you should be able to login with YOUR_NEW_USER over ssh without a password. If it works, close your root connection and switch to YOUR_NEW_USER.
We need to set some network informations. You can find all information on my vultr
/etc/mygate file with your gateway
/etc/hostname.vio0 with following text
inet YOUR_INSTANCE_IP 255.255.254.0 NONE inet6 autoconf -autoconfprivacy -soii
/etc/resolv.conf with following text
nameserver 22.214.171.124 lookup file bind
That’s it. No we have a running OpenBSD 6.3 instance on vultr. Maybe, you want configure a webserver now.
Have something to say?
Ping me on Twitter. That way your thoughts aren't lost forever on this site.