---
title: SFTP collection not working after Hardening on VLC
description: "Issue\nAfter performing the hardening on the VLC, the sftp agent cannot connect to the VLC.On sftp agent, running psftp command produces following erro"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/sftp-collection-not-working-after-hardening-on-vlc#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Break Fix](https://mydev.netwitness.com/knowledge-base/break-fix?hsLang=en)

April 30, 2026

# SFTP collection not working after Hardening on VLC

#### Issue

 After performing the hardening on the VLC, the sftp agent cannot connect to the VLC.

On sftp agent, running psftp command produces following error:   
 

 C:\\sasftpagent\>psftp -i private.ppk -l sftp -v x.x.x.x   
Looking up host "x.x.x.x"   
Connecting to x.x.x.x port 22   
Server version: SSH-2.0-OpenSSH\_5.3   
Using SSH protocol version 2   
We claim version: SSH-2.0-PuTTY\_Local:\_Aug\_13\_2014\_15:13:55   
Doing Diffie-Hellman group exchange   
Doing Diffie-Hellman key exchange with hash SHA-256   
Host key fingerprint is:   
ssh-rsa 2048 f6:a4:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:18   
Initialised AES-256 SDCTR client-\>server encryption   
Initialised HMAC-SHA1 client-\>server MAC algorithm   
Initialised AES-256 SDCTR server-\>client encryption   
Initialised HMAC-SHA1 server-\>client MAC algorithm   
Reading private key file "private.ppk"   
Using username "sftp".   
Offered our public key null   
Offered public key   
Offer of public key accepted   
Authenticating with public key "rsa-key-20160610"   
Sent public key signature   
Access granted   
Opening session as main channel   
Opened main channel   
Started a shell/command   
Connected to x.x.x.x   
Fatal: Received unexpected end-of-file from SFTP server 

The SSH debug log /var/log/secure shows following error:   
............................

 VLC sshd\[32408\]: pam\_unix(sshd:account): expired password for user sftp (root enforced)   
VLC sshd\[32408\]: debug3: PAM: sshpam\_store\_conv called with 1 messages   
VLC sshd\[32408\]: debug3: PAM: do\_pam\_account pam\_acct\_mgmt = 12 (Authentication token is no longer valid; new one required)   
............................   
VLC sshd\[32413\]: debug3: channel 0: close\_fds r -1 w -1 e -1   
VLC sshd\[32412\]: debug3: Wrote 88 bytes for a total of 4269   
VLC sshd\[32412\]: debug1: Received SIGCHLD.

#### Resolution

 The trace log "pam\_unix(sshd:account): expired password for user sftp (root enforced)" indicates that the password for user sftp need reset. So you must reset the password for sftp account on the VLC as follows:

1. SSH to VLC using a normal user account(After hardening, super user access to a host through SSH is blocked).
2. Switch to root account with command "su -" and provide root's password, or switch to root account with command "sudo su -" and provide normal user's password.
3. Run command "passwd sftp" and set a new password for the account sftp. Make sure the password is STIG compliant. To understand a STIG compliant password please refer to https://community.netwitness.com/t5/netwitness-platform-online/configure-disa-stig-hardening/ta-p/669807

After resetting the sftp account's password, please try sftp connection again.

Also please note that SITG compliant require the user passwords to be changed at least every 60 days. The user sftp password is subject to this policy as well.

#### Notes

How to enable SSH debug on SSH server side:

1\. On the CentOS log collector/decoder system, edit /etc/ssh/sshd\_config. 

2\. At the very beginning of the file (i.e. at line number 1), add the following line to enable debug logs for SSHD service. 

 LogLevel DEBUG3  

 Save and quit the file. 

3\. Restart SSHD service with this command: service sshd restart 

4\. Execute this command: cp /var/log/secure secure1.txt 

5\. Then reproduce the issue exactly once by running the psftp command on your Windows system at C:\\NICsftpagent. Note: It is important that you reproduce the issue exactly once here. 

6\. Execute this command on the CentOS system: diff -u secure1.txt /var/log/secure \> secure.txt 

7\. After this experiment is complete, please provide the secure.txt file to RSA support.

#### Product Details

**NetWitness Product Set:** NetWitness Platform   
**NetWitness Product/Service Type:** Log Collector   
**NetWitness Version/Condition:** 11.x, 12.x   
**Platform:** CentOS 7 / Alma

#### Approval Reviewer Queue

Technical approval queue

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.