ฉันมีระบบรีโมตหลายตัวและหนึ่งในนั้นคือ linode ที่กำลังเรียกใช้ debian ช้ามากที่จะใช้ ssh - ใช้เวลาประมาณ 20-25 วินาทีทุกครั้ง ดูเหมือนว่าจะเกิดขึ้นค่อนข้างเร็ว ๆ นี้ ฉันได้พยายามตั้งค่าGSSAPIAuthentication
การno
หรือเพื่อyes
เป็นข้อเสนอแนะในหลายคำตอบสำหรับคำถามที่คล้ายกันและมันก็ไม่ได้สร้างความแตกต่าง นอกจากนี้ยังไม่ได้สร้างความแตกต่างถ้าฉันเข้าสู่ระบบโดยใช้ fqdn หรือที่อยู่ IP ฉันมีความล่าช้าเหมือนกันจากกล่อง linux ในพื้นที่ของฉันหรือเครื่อง Macintosh ในพื้นที่ของฉัน ฉันไม่มีความล่าช้าเช่น sshing จาก linode ไปยังกล่อง linux ในเครื่อง ฉันมีระบบรีโมตอื่นที่ใช้ Debian รุ่นเดียวกันและฉันสามารถ ssh เข้าไปภายใน 2 วินาที ข้อแตกต่างระหว่าง/etc/ssh/sshd_config
ไฟล์ในสองช่อง Debian คือไฟล์ที่รวดเร็วไม่อนุญาตให้ใช้รหัสผ่านและยังระบุรายการของ ciphers ที่อนุญาต
หากฉันเข้าสู่ระบบโดยใช้ssh -vvv root@linode
ความล่าช้าจะเกิดขึ้นที่ส่วนที่ทำเครื่องหมายด้วย >>>>>>
debug2: key: /root/.ssh/id_ecdsa ((nil))
debug2: key: /root/.ssh/id_ed25519 ((nil))
debug3: send packet: type 5
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
>>>>>>
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug3: send_pubkey_test
(นี่เป็นเพียงบันทึกบางส่วน - มีบันทึกแบบเต็มตามคำขอ)
ฉันไม่พบสิ่งใดเกี่ยวกับการเข้าสู่ระบบ/var/log/auth.log
หรือ/var/log/syslog
ในช่วงเวลาที่ล่าช้า - หลังจากนั้นฉันเพิ่งได้รับ
Jul 27 13:46:43 linode sshd[23049]: Accepted publickey for root from 199.241.27.237 port 51464 ssh2: RSA 89:08:ef:44:48:a4:84:b7:0a:de:14:65:1b:d9:86:f8
Jul 27 13:46:43 linode sshd[23049]: pam_unix(sshd:session): session opened for user root by (uid=0)
Jul 27 13:46:43 linode systemd-logind[3235]: New session 10361 of user root.
UseDNS no
แก้ไขปัญหาให้มากที่สุดเท่าที่จะได้รับการแก้ไข