How to change or configure OpenBSD package install mirror

Posted on in Categories , , last updated August 16, 2017

openbsd commandI am trying to install nginx server on OpenBSD but keep getting an error that read as follows when I run the pkg_add command:

https://mirror.leaseweb.com/pub/OpenBSD/6.1/packages/amd64/quirks-2.304.tgz” title=”quirks-2.304.tgz: ftp: Error retrieving file: 404 Not Found
signify: gzheader truncated
https://mirror.leaseweb.com/pub/OpenBSD/6.1/packages/amd64/nginx-1.10.2p2.tgz” title=”nginx-1.10.2p2.tgz: ftp: Error retrieving file: 404 Not Found
signify: gzheader truncated

How do I change or configure OpenBSD package install mirror for the pkg_add command?

How to allow root login from one IP address with ssh public keys only

Posted on in Categories , , , , , , , last updated June 10, 2017

I am using MacOS on the desktop and Ubuntu Linux on the server. I disabled root login over ssh and enabled ssh based public key login. However, I recently added second Ubuntu server. I need to sync file between two using rsync command. Is there any way that I can log from the second server into my first server with root user from second server IP address only ({root@secondBOX }# ssh root@firstBOX1) without reducing OpenSSH server security option?