<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sftp connection hang after login in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/sftp-connection-hang-after-login/m-p/160900#M36747</link>
    <description>&lt;P&gt;Sorry - this post got caught up in the spam filter. It's been released.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2020 15:44:30 GMT</pubDate>
    <dc:creator>Drew_C</dc:creator>
    <dc:date>2020-11-02T15:44:30Z</dc:date>
    <item>
      <title>sftp connection hang after login</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/sftp-connection-hang-after-login/m-p/160856#M36739</link>
      <description>&lt;P&gt;Hi to all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we configured an FAS2240 with sftp protocol, when we try to access with a client like winscp receive a warning about Diffie-Helman alghoritm then the connection was broken with authentication error, while if i try from linux host with debug mode enabled we received this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[root@eslgbatbs tina]# sftp root@10.147.146.168&lt;BR /&gt;root@10.147.146.168's password:&lt;BR /&gt;Connection closed&lt;BR /&gt;[root@eslgbatbs tina]# sftp -v root@10.147.146.168&lt;BR /&gt;OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017&lt;BR /&gt;debug1: Reading configuration data /etc/ssh/ssh_config&lt;BR /&gt;debug1: /etc/ssh/ssh_config line 58: Applying options for *&lt;BR /&gt;debug1: Connecting to 10.147.146.168 [10.147.146.168] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: permanently_set_uid: 0/0&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file /root/.ssh/id_rsa type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file /root/.ssh/id_rsa-cert type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file /root/.ssh/id_dsa type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file /root/.ssh/id_dsa-cert type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file /root/.ssh/id_ecdsa type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file /root/.ssh/id_ecdsa-cert type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file /root/.ssh/id_ed25519 type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file /root/.ssh/id_ed25519-cert type -1&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_7.4&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2 FreeBSD-20160310&lt;BR /&gt;debug1: match: OpenSSH_7.2 FreeBSD-20160310 pat OpenSSH* compat 0x04000000&lt;BR /&gt;debug1: Authenticating to 10.147.146.168:22 as 'root'&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: kex: algorithm: curve25519-sha256@libssh.org&lt;BR /&gt;debug1: kex: host key algorithm: rsa-sha2-512&lt;BR /&gt;debug1: kex: server-&amp;gt;client cipher: aes128-ctr MAC: umac-64-etm@openssh.com compression: none&lt;BR /&gt;debug1: kex: client-&amp;gt;server cipher: aes128-ctr MAC: umac-64-etm@openssh.com compression: none&lt;BR /&gt;debug1: kex: curve25519-sha256@libssh.org need=16 dh_need=16&lt;BR /&gt;debug1: kex: curve25519-sha256@libssh.org need=16 dh_need=16&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_ECDH_REPLY&lt;BR /&gt;debug1: Server host key: ssh-rsa SHA256:QsmNgeGkvZnQSNZ4MmCksUdcTDAfQ2IOTY+mvex1qkg&lt;BR /&gt;debug1: Host '10.147.146.168' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /root/.ssh/known_hosts:2&lt;BR /&gt;debug1: rekey after 4294967296 blocks&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: rekey after 4294967296 blocks&lt;BR /&gt;debug1: SSH2_MSG_EXT_INFO received&lt;BR /&gt;debug1: kex_input_ext_info: server-sig-algs=&amp;lt;rsa-sha2-256,rsa-sha2-512&amp;gt;&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug1: Authentications that can continue: publickey,password&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /root/.ssh/id_rsa&lt;BR /&gt;debug1: Trying private key: /root/.ssh/id_dsa&lt;BR /&gt;debug1: Trying private key: /root/.ssh/id_ecdsa&lt;BR /&gt;debug1: Trying private key: /root/.ssh/id_ed25519&lt;BR /&gt;debug1: Next authentication method: password&lt;BR /&gt;root@10.147.146.168's password:&lt;BR /&gt;debug1: Authentication succeeded (password).&lt;BR /&gt;Authenticated to 10.147.146.168 ([10.147.146.168]:22).&lt;BR /&gt;debug1: channel 0: new [client-session]&lt;BR /&gt;debug1: Requesting no-more-sessions@openssh.com&lt;BR /&gt;debug1: Entering interactive session.&lt;BR /&gt;debug1: pledge: network&lt;BR /&gt;debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0&lt;BR /&gt;debug1: Sending environment.&lt;BR /&gt;debug1: Sending env LANG = en_US.UTF-8&lt;BR /&gt;debug1: Sending subsystem: sftp&lt;BR /&gt;debug1: client_input_channel_req: channel 0 rtype exit-status reply 0&lt;BR /&gt;debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0&lt;BR /&gt;debug1: channel 0: free: client-session, nchannels 1&lt;BR /&gt;debug1: fd 0 clearing O_NONBLOCK&lt;BR /&gt;Transferred: sent 2064, received 3312 bytes, in 0.1 seconds&lt;BR /&gt;Bytes per second: sent 25613.0, received 41099.9&lt;BR /&gt;debug1: Exit status 255&lt;BR /&gt;Connection closed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you some ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for support.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:47:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/sftp-connection-hang-after-login/m-p/160856#M36739</guid>
      <dc:creator>ale</dc:creator>
      <dc:date>2025-06-04T10:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: sftp connection hang after login</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/sftp-connection-hang-after-login/m-p/160900#M36747</link>
      <description>&lt;P&gt;Sorry - this post got caught up in the spam filter. It's been released.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 15:44:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/sftp-connection-hang-after-login/m-p/160900#M36747</guid>
      <dc:creator>Drew_C</dc:creator>
      <dc:date>2020-11-02T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: sftp connection hang after login</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/sftp-connection-hang-after-login/m-p/160914#M36749</link>
      <description>&lt;P&gt;Hi Ale,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The user "root" is not allowed for SFTP access. SFTP utilizes SSHv2, therefore both SSHv2 and SFTP must be enabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are 7-mode commands to check your SSH configuration:&lt;/P&gt;
&lt;P&gt;&amp;gt; secureadmin status&lt;/P&gt;
&lt;P&gt;&amp;gt; secureadmin setup&lt;/P&gt;
&lt;P&gt;&amp;gt; secureadmin enable&lt;/P&gt;
&lt;P&gt;&amp;gt; options ssh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can view all of the SFTP configuration parameters using:&lt;/P&gt;
&lt;P&gt;&amp;gt; options sftp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To modify a value in "options" follow this example:&lt;/P&gt;
&lt;P&gt;View current setting:&lt;/P&gt;
&lt;P&gt;&amp;gt; options sftp.enable&lt;/P&gt;
&lt;P&gt;OUTPUT&amp;gt;&amp;gt; sftp.enable off&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To modify, run:&lt;/P&gt;
&lt;P&gt;&amp;gt; options sftp.enable on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;View setting again to confirm:&lt;/P&gt;
&lt;P&gt;&amp;gt; options sftp.enable&lt;/P&gt;
&lt;P&gt;OUTPUT&amp;gt;&amp;gt; sftp.enable on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some documentation that explains SFTP and how to configure:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://library.netapp.com/ecmdocs/ECMP1401220/html/GUID-B61B9FB7-BDDA-4F91-8FC5-CA4C39B43B7B.html" target="_self"&gt;Managing SFTP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_configure_SFTP_on_a_7-Mode_storage_system" target="_self"&gt;KB: How to configure SFTP on 7-Mode&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Team NetApp&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 04:32:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/sftp-connection-hang-after-login/m-p/160914#M36749</guid>
      <dc:creator>ttran</dc:creator>
      <dc:date>2020-11-03T04:32:02Z</dc:date>
    </item>
  </channel>
</rss>

