Posts

Showing posts from May, 2018

Featured Post

run ssh server on android

Run an SSH server on your Android with Termux With the brilliant Termux terminal emulator app you can run an SSH server on your Android. Perviously I used SSHDroid to achieve this, but with Termux is much nicer because you have access to a working package manager. Run the service You neet to install the OpenSSH package apt install openssh and use following command to start the ssh server. sshd And there you go. Your ssh service is now running on port 8022. ssh localhost -p 8022 Adding your Public key You can't do password authentication in Termux, therefore you need to put your OpenSSH public key into the ~/.ssh/authorized_keys file. This file will need to be created and permissions set to 600. touch ~/.ssh/authorized_keys # Set Permissions to the file chmod 600 ~/.ssh/authorized_keys # Make sure the folder .ssh folder has the correct permissions chmod 700 ~/.ssh If you do not have a OpenSSH key pair yet,...

postfix email setup

Set up Postfix for incoming email This document will take you through the steps of setting up a basic Postfix mail server with IMAP authentication on Ubuntu, to be used with incoming email. The instructions make the assumption that you will be using the email address  incoming@gitlab.example.com , that is, username  incoming  on host  gitlab.example.com . Don't forget to change it to your actual host when executing the example code snippets. Configure your server firewall  Open up port 25 on your server so that people can send email into the server over SMTP. If the mail server is different from the server running GitLab, open up port 143 on your server so that GitLab can read email from the server over IMAP. Install packages  Install the  postfix  package if it is not installed already: sudo apt-get install postfix When asked about the environment, select 'Internet Site'. When asked to confirm the hostname, make sure i...