Open the file /etc/ssh/sshd_config and modify the line:
Port xxx
Finally restart the ssh service
sudo service ssh restart
| #!/bin/bash | |
| # | |
| # Inspired in this https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/ | |
| # I'm creating this gist as a note to my future self | |
| # Create bare repository | |
| git init --bare $HOME/.myconfs | |
| # Create alias to interact with the config directory | |
| # It also should go in a .bash_profile and/or .bashrc files |