12/28/2023 0 Comments Setup mosh server on raspberry piMosh is a replacement for interactive SSH terminals. Mosh (mobile shell) Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes. Then from ssh-client you will be able to connect ssh -p 42895 Restart ssh-server service sudo systemctl restart rvice Test your configuration with ssh test mode sudo sshd -t Better than 26 would be something randomly above ( below 65535), like 42895.Īlso consider changing to PermitRootLogin no. To make ssh-server listen on any given port you have toĮdit on /etc/ssh/sshd_config ( note the d) from #Port 22 to Port 26. It is not a good idea to run ssh on default port (TCP/22), neither forward from WAN IP 22 to whatever port is using ssh-server on LAN IP. I also suggest to enforce public key authentication and disable password authentication for the internet access: PasswordAuthentication no The file /etc/ssh/nfig can be a copy of your usual sshd configuration.Įnsure that the following statements are configured: Port 12345 The xinetd configuration is: service ssh-external Maybe a higher value will make it also a bit more unlikely that this port is scanned by a "quick port scan". You are free to change this to any available free port number on your system. In the following example I use the port 12345: ![]() The external sshd processes are controlled by xinetd and running in parallel to the internal sshd process. This has the benefit the I reduce the load produced generated by script kids who are scanning port 22 for "well known usernames". I use port 22 only for the intranet ssh access.įor access via internet I use a custom (unusual) port. It gave me the connection refused message still.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |