Mungkin dalam beberapa kasus ada kendala seperti yang saya alami, saat akan terkoneksi SSH ke server ada kendala dalam autentikasi, seperti dibawah ini ::
$ssh -oKexAlgorithms=+diffie-hellman-group1-sha1
Unable to negotiate with 123.123.123.123 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
Sekarang kita coba cek dahulu untuk koneksi nya, apa respon atau tidak ::
$ping 123.123.123.123
PING 123.123.123.123 (123.123.123.123) 56(84) bytes of data.
64 bytes from 123.123.123.123: icmp_seq=1 ttl=245 time=25.7 ms
64 bytes from 123.123.123.123: icmp_seq=2 ttl=245 time=25.2 ms
64 bytes from 123.123.123.123: icmp_seq=3 ttl=245 time=26.8 ms
64 bytes from 123.123.123.123: icmp_seq=4 ttl=245 time=28.9 ms
64 bytes from 123.123.123.123: icmp_seq=5 ttl=245 time=25.4 ms
--- 123.123.123.123 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 25.187/26.410/28.912/1.362 ms
Kalian bisa dengan menggunakan cara berikut, untuk manual saat akses ke server tsb ::
$ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 123.123.123.123
The authenticity of host '123.123.123.123 (123.123.123.123)' can't be established.
RSA key fingerprint is SHA256:RX3nyCYDqZ4pXefCnJUfwdamD7X65aODcPg54rXbdzM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '123.123.123.123' (RSA) to the list of known hosts.
odette@123.123.123.123's password:
Atau dengan secara permanen dengan membuat manual file config di dalam folder .ssh ::
$touch ~/.ssh/config
Lalu buka file config dengan nano ::
$sudo nano ~/.ssh/config
Lalu copy paste ::
Host 123.123.123.123
KexAlgorithms +diffie-hellman-group1-sha1
Sekian Semoga bermanfaat !!!
Tuesday, April 28, 2020
Subscribe to:
Post Comments (Atom)
