i tried login ssh to my vps server with ip 1.1.1.1 from santrex hosting
but i always got error messages “server unexpectedly closed network connection”
for the first time i try login with lvm webpannel
adn can login ssh with loginvm@91.1.1.1
then i generated 3 key of sshd:
ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N “”
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N “”
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N “”
—————————————————————————–
root@vps:/etc# ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N “”
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
d7:91:dd:5a:63:38:e4:41:8a:4a:d9:a7:5f:37:ae:cd root@vps.ardantus.org
The key’s randomart image is:
+–[RSA1 2048]—-+
| .+ |
| o . +oo. |
| o o oo+.oo|
| . . o. .oo.|
| .S.. …o |
| .. . o .|
| . . |
| + |
| . E |
+—————–+
root@vps:/etc# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N “”
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
fc:e9:6d:69:da:39:aa:05:98:90:ef:11:af:9d:82:9d root@vps.ardantus.org
The key’s randomart image is:
+–[ RSA 2048]—-+
| |
| . |
| o . |
| o * |
| = S |
| + = + . |
| . E o + . |
| . o o=. |
| ..+=+. |
+—————–+
root@vps:/etc# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N “”
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
d5:b3:f6:6a:3d:0d:e0:44:a1:26:7c:25:02:11:e8:ee root@vps.ardantus.org
The key’s randomart image is:
+–[ DSA 1024]—-+
| .++. . o. |
| . . . =. |
| . o =.o |
| . = oo |
| . S oo. |
| . …. |
| . ..o |
| E ..o .|
| .. . |
+—————–+
root@vps:/etc#
—————————————————————————-
then i can login to my vps server using generaly port
for security i change to 2222
the problem resolved