3 Rollback to Revision 1
source | link

Your syntax for the Subsystem keyword is wrong. Try this instead:

Subsystem sftp internal-sftp

Match Group nas
    ChrootDirectory %h
    ForceCommand internal-sftp
    AllowTcpForwarding no

If you take a look at /var/log/auth.log on your server (yes, I know that's localhost in your case) you will see messages like this:

Jul  7 22:46:24 localhost sshd[30701]: Accepted publickey for jsmith from 192.168.56.1 port 61983 ssh2: RSA 86:87:b7:08:15:5e:a4:7b:32:ba:c8:fa:84:89:45:4c
Jul  7 22:46:24 localhost sshd[30701]: pam_unix(sshd:session): session opened for user jsmith by (uid=0)
Jul  7 22:46:25 localhost sshd[30706]: subsystem request for sftp by user jsmith failed, subsystem not found
Jul  7 22:46:25 localhost sshd[30701]: pam_unix(sshd:session): session closed for user jsmith

The key here is the penultimate line, subsystem request for sftp by user jsmith failed, subsystem not found, which indicates something wrong with the subsystem command. Looking in the man page for sshd_config could then lead you to the right syntax.

Your syntax for the Subsystem keyword is wrong. Try this instead:

Subsystem sftp internal-sftp

Match Group nas
    ChrootDirectory %h
    ForceCommand internal-sftp
    AllowTcpForwarding no

If you take a look at /var/log/auth.log on your server (yes, I know that's localhost in your case) you will see messages like this:

Jul  7 22:46:24 localhost sshd[30701]: Accepted publickey for jsmith from 192.168.56.1 port 61983 ssh2: RSA 86:87:b7:08:15:5e:a4:7b:32:ba:c8:fa:84:89:45:4c
Jul  7 22:46:24 localhost sshd[30701]: pam_unix(sshd:session): session opened for user jsmith by (uid=0)
Jul  7 22:46:25 localhost sshd[30706]: subsystem request for sftp by user jsmith failed, subsystem not found
Jul  7 22:46:25 localhost sshd[30701]: pam_unix(sshd:session): session closed for user jsmith

The key here is the penultimate line, subsystem request for sftp by user jsmith failed, subsystem not found, which indicates something wrong with the subsystem command. Looking in the man page for sshd_config could then lead you to the right syntax.

Your syntax for the Subsystem keyword is wrong. Try this instead:

Subsystem internal-sftp

Match Group nas
    ChrootDirectory %h
    ForceCommand internal-sftp
    AllowTcpForwarding no

If you take a look at /var/log/auth.log on your server (yes, I know that's localhost in your case) you will see messages like this:

Jul  7 22:46:24 localhost sshd[30701]: Accepted publickey for jsmith from 192.168.56.1 port 61983 ssh2: RSA 86:87:b7:08:15:5e:a4:7b:32:ba:c8:fa:84:89:45:4c
Jul  7 22:46:24 localhost sshd[30701]: pam_unix(sshd:session): session opened for user jsmith by (uid=0)
Jul  7 22:46:25 localhost sshd[30706]: subsystem request for sftp by user jsmith failed, subsystem not found
Jul  7 22:46:25 localhost sshd[30701]: pam_unix(sshd:session): session closed for user jsmith

The key here is the penultimate line, subsystem request for sftp by user jsmith failed, subsystem not found, which indicates something wrong with the subsystem command. Looking in the man page for sshd_config could then lead you to the right syntax.

2 Brain fade missed "sftp" from Subsystem
source | link

Your syntax for the Subsystem keyword is wrong. Try this instead:

Subsystem sftp internal-sftp

Match Group nas
    ChrootDirectory %h
    ForceCommand internal-sftp
    AllowTcpForwarding no

If you take a look at /var/log/auth.log on your server (yes, I know that's localhost in your case) you will see messages like this:

Jul  7 22:46:24 localhost sshd[30701]: Accepted publickey for jsmith from 192.168.56.1 port 61983 ssh2: RSA 86:87:b7:08:15:5e:a4:7b:32:ba:c8:fa:84:89:45:4c
Jul  7 22:46:24 localhost sshd[30701]: pam_unix(sshd:session): session opened for user jsmith by (uid=0)
Jul  7 22:46:25 localhost sshd[30706]: subsystem request for sftp by user jsmith failed, subsystem not found
Jul  7 22:46:25 localhost sshd[30701]: pam_unix(sshd:session): session closed for user jsmith

The key here is the penultimate line, subsystem request for sftp by user jsmith failed, subsystem not found, which indicates something wrong with the subsystem command. Looking in the man page for sshd_config could then lead you to the right syntax.

Your syntax for the Subsystem keyword is wrong. Try this instead:

Subsystem internal-sftp

Match Group nas
    ChrootDirectory %h
    ForceCommand internal-sftp
    AllowTcpForwarding no

If you take a look at /var/log/auth.log on your server (yes, I know that's localhost in your case) you will see messages like this:

Jul  7 22:46:24 localhost sshd[30701]: Accepted publickey for jsmith from 192.168.56.1 port 61983 ssh2: RSA 86:87:b7:08:15:5e:a4:7b:32:ba:c8:fa:84:89:45:4c
Jul  7 22:46:24 localhost sshd[30701]: pam_unix(sshd:session): session opened for user jsmith by (uid=0)
Jul  7 22:46:25 localhost sshd[30706]: subsystem request for sftp by user jsmith failed, subsystem not found
Jul  7 22:46:25 localhost sshd[30701]: pam_unix(sshd:session): session closed for user jsmith

The key here is the penultimate line, subsystem request for sftp by user jsmith failed, subsystem not found, which indicates something wrong with the subsystem command. Looking in the man page for sshd_config could then lead you to the right syntax.

Your syntax for the Subsystem keyword is wrong. Try this instead:

Subsystem sftp internal-sftp

Match Group nas
    ChrootDirectory %h
    ForceCommand internal-sftp
    AllowTcpForwarding no

If you take a look at /var/log/auth.log on your server (yes, I know that's localhost in your case) you will see messages like this:

Jul  7 22:46:24 localhost sshd[30701]: Accepted publickey for jsmith from 192.168.56.1 port 61983 ssh2: RSA 86:87:b7:08:15:5e:a4:7b:32:ba:c8:fa:84:89:45:4c
Jul  7 22:46:24 localhost sshd[30701]: pam_unix(sshd:session): session opened for user jsmith by (uid=0)
Jul  7 22:46:25 localhost sshd[30706]: subsystem request for sftp by user jsmith failed, subsystem not found
Jul  7 22:46:25 localhost sshd[30701]: pam_unix(sshd:session): session closed for user jsmith

The key here is the penultimate line, subsystem request for sftp by user jsmith failed, subsystem not found, which indicates something wrong with the subsystem command. Looking in the man page for sshd_config could then lead you to the right syntax.

1
source | link

Your syntax for the Subsystem keyword is wrong. Try this instead:

Subsystem internal-sftp

Match Group nas
    ChrootDirectory %h
    ForceCommand internal-sftp
    AllowTcpForwarding no

If you take a look at /var/log/auth.log on your server (yes, I know that's localhost in your case) you will see messages like this:

Jul  7 22:46:24 localhost sshd[30701]: Accepted publickey for jsmith from 192.168.56.1 port 61983 ssh2: RSA 86:87:b7:08:15:5e:a4:7b:32:ba:c8:fa:84:89:45:4c
Jul  7 22:46:24 localhost sshd[30701]: pam_unix(sshd:session): session opened for user jsmith by (uid=0)
Jul  7 22:46:25 localhost sshd[30706]: subsystem request for sftp by user jsmith failed, subsystem not found
Jul  7 22:46:25 localhost sshd[30701]: pam_unix(sshd:session): session closed for user jsmith

The key here is the penultimate line, subsystem request for sftp by user jsmith failed, subsystem not found, which indicates something wrong with the subsystem command. Looking in the man page for sshd_config could then lead you to the right syntax.