SSH started but cannot access SFTP file tranfer (Install SFTP server)

Ngày 28 tháng 11 năm 2012 Trương Chương Dương
You can connect via SSH but when you connect via SFTP to tranfer file it said "Could not connect to server" or "Connection closed by server with exitcode 1". It because you didn't install sftp-server.
Sftp-server is a sub system of sshd, please do these step to install it:
  1. Open file "/etc/ssh/sshd_config" (FreeBSD) or "/etc/ssh/sshd_config"
  2. Add these line at end of config file:
    • Subsystem       sftp    /usr/libexec/sftp-server
    • or
    • Subsystem       sftp    /usr/libexec/openssh/sftp-server
  3. Save and exit.
  4. Restart sshd service:
    • /etc/rc.d/sshd restart (FreeBSD)
    • or
    • service sshd restart
It done.
Đang tải dữ liệu...