suppongo che tu abbia usato questa guida per cambiare porta
ssh, procediamo per passi:
1)da rete lan (inerna) il tuo server deve avere un ip fisso ex 192.168.0.10 se si vai a 3 se no vai a 2
2)sudo nano /etc/network/interfaces
Codice: Seleziona tutto
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
dns-search workroup
sudo service networking restart
3)sudo nano /etc/hostname controlla che sia presente il nome del tuo server in caso mettilo!
4)sudo nano /etc/hosts
Codice: Seleziona tutto
#
# Necessario per il "loopback" IPv4.
#
#127.0.1.1 nomeserver localhost.localdomain localhost #devi commentarlo
127.0.0.1 localhost
#
# Indirizzi IPv4.
#
192.168.1.10 nomeserver.ns0.it nomeserver
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
5) sudo nano /etc/resolv.conf
Codice: Seleziona tutto
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 192.168.1.10
nameserver 127.0.0.1
search nomeserver
6) sudo apt-get -y apt-get install ssh libio-socket-ssl-perl ddclient
segui questa guida per l'installazione
configurazione-di-ddclient naturalmente iscriviti è gratuito.
fai un bel reboot, vedrai che funziona tutto