sftp – Filezilla SSH-RSA2 را از سوییچ سیسکو نمی بیند

من سرور FileZilla Pro را روی سیستم خود دارم. من از آن برای انتقال فایل های سوئیچ شبکه از طریق شبکه خود به و از SFTP استفاده می کنم. هنگام تلاش برای انتقال فایلها به یا از سرور FileZilla، پس از فهرست کردن همه الگوریتمهای موجود، با خطا مواجه میشود و بدون انتقال فایلها، اتصال را قطع میکند.
راه اندازی FileZilla
سرور برای SFTP با استفاده از کلید میزبان SSH-RSA روی آن تنظیم شده است. حساب کاربری برای مشاهده یک پوشه خاص تنظیم شده است. برای الگوریتمهای رمزنگاری تحت امضای کلید، من اجازه میدهم ssh-ed25519, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, rsa-sha2-512, rsa-sha2-256. برای الگوریتم های MAC استفاده می شود hmac-sha2-512, hmac-sha2-256, hmac-sha1.
تنظیمات سوئیچ
سوئیچ از RSA KeyPair با تنظیمات زیر استفاده می کند:
ip ssh rsa keypair-name RSA-SWITCH
ip ssh version 2
ip ssh server algorithm mac hmac-sha2-256 hmac-sha2-512
ip ssh server algorithm encryption aes256-ctr aes192-ctr aes128-ctr
ip ssh client algorithm mac hmac-sha2-256 hmac-sha2-512
ip ssh client algorithm encryption aes256-ctr aes192-ctr aes128-ctr
همانطور که من متوجه شدم، سوئیچ سیسکو باید از SSH-RSA2 استفاده کند
گزارش های خطا
هنگامی که سوئیچ برای نوشتن یک فایل پیکربندی به FileZilla متصل می شود، FileZilla گزارش خطای زیر را خروجی می دهد.
Session created
Session Setting buffer sizes
Client is in violation of the SSH specifications, it does no terminate its identification string with CRLF. As per RFC 4253 section 4.2 it must be terminate CRLF.
Client identification string not terminated by CRLF.
Sending SSH_MSG_DISCONNECT
Recording failed SSH handshake
اگر کادر تنظیمات FileZilla را علامت بزنید اجازه دادن به رشته شناسایی مشتری که توسط CRLF خاتمه نیافته است و دوباره سعی کنید از سوییچ ارسال کنید، این گزارش را دریافت می کنم:
Session created.
Session setting buffer sizes
Client is in violation of SSH specifications, it does not terminate its identification string with CRLF. As per RFC 4253 section 4.2 it MUST be terminated by CRLF.
Receive protover SSH-2.0-Cisco-1.25
Sending SSH_MSG_KEXINIT
Processing SSH_MSG_KEXINIT
Kex algorithms offered to peer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
Host Key signature algorithms offered by peer: ssh-rsa
Ciphers c2s offered by peer: aes192-ctr,aes25-cbc,aes256-ctr
Ciphers s2c offered by peer: aes192-ctr,aes25-cbc,aes256-ctr
Mac algorithms c2s offered by peer: hmac-sha2-256,hmac-sha2-512
Mac algorithms s2c offered by peer: hmac-sha2-256,hmac-sha2-512
Compression algorithms c2s offered by peer: none
Compression algorithms s2c offered by peer: none
Our host key signature algorithms offer: rsa-sha2-512, rsa-sha2-256
Peer host key signature algorithms offer: ssh-rsa
No matching hostkey signature algorithm
Sending SSH_MSG_DISCONNECT
Recording failed SSH handshake.
من میتوانم ssh-rsa را به الگوریتمهای امضای کلیدی FileZilla اضافه کنم و گزارش زیر را دریافت کنم:
Session created.
Session setting buffer sizes
Client is in violation of SSH specifications, it does not terminate its identification string with CRLF. As per RFC 4253 section 4.2 it MUST be terminated by CRLF.
Receive protover SSH-2.0-Cisco-1.25
Sending SSH_MSG_KEXINIT
Processing SSH_MSG_KEXINIT
Kex algorithms offered to peer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
Host Key signature algorithms offered by peer: ssh-rsa
Ciphers c2s offered by peer: aes192-ctr,aes25-cbc,aes256-ctr
Ciphers s2c offered by peer: aes192-ctr,aes25-cbc,aes256-ctr
Mac algorithms c2s offered by peer: hmac-sha2-256,hmac-sha2-512
Mac algorithms s2c offered by peer: hmac-sha2-256,hmac-sha2-512
Compression algorithms c2s offered by peer: none
Compression algorithms s2c offered by peer: none
Negotiated kex diffie-hellman-group14-sha1, with host key signature ssh-rsa, c2s cipher aes192-ctr with mac hmac-sha2-256, s2c cipher aes192-ctr with mac hmac-sha2-256
Processing SSH_MSG_KEXDH_INTI
Deriving keys and setting up algorithms
Sending SSH_MSG_KEXDH_REPLAY
Sending SSH_MSG_NEWKEYS
Processing SSH_MSG_NEWKEYS
Processing SSH_MSG_SERVICE_REQUEST
Sending SSH_MSG_SERVICE_REQUEST
Sending SSH_MSG_USERAUTH_BANNER
Processing SSH_MSG_UERAUTH_REQUEST
Starting Authentication of user
Processing auth method
Invoking get_auth_data
Real sftp is enabled for user. Continuation authentication.
SSH None Authentication
Authenticating User. Methods requested. Available Methods.
Authentication for user is comoplete
make_shared_tvfs_backedn CREATED
Effective mount points
User Authenticated successfully
Accepted authentication, user logged in
Sending SSH_MSG_USERAUTH_SUCCESS
Sendign SSH_MSG_GLOBALREQUEST
Processing SSH_MSG_CHANNEL_OPEN
Client wants to open channel of type session
Sending SSH_MSG_CHANNEL_OPEN_CONFIRMATION
Could not read from socket, socket unexpectedly closed
Closing connection.
برای همه این تلاشها، سوئیچ فقط خطا در نوشتن sftp://XXX.XXX.XXX.XXX/config را نشان میدهد (خطای تعریف نشده)
بنابراین سردرگمی این است که من فکر کردم سوئیچ با RSA2 کار می کند. اما FileZilla آن را به صورت SSH-RSA نشان می دهد. و با این همه تخفیف، فایل را به آخرین گزارش منتقل نمی کند. به نظر می رسد فقط اتصال را بسته است. آیا الگوریتم های من اشتباه است یا تنظیمات سوئیچ من به درستی تنظیم نشده است؟




