Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Trouble logging in via ftp
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Trouble logging in via ftp
  • SDP: 6.5.0, 6.6.0, 7.0.0, 7.1.0
  • Target: Any supported target
________________________________________________________________________

Recommendation
________________________________________________________________________

There are multiple reasons for an unsuccessful ftp login. To troubleshoot these problems run syslogd on your QNX target and check the log file.

To run syslogd, the syslogd binary and the syslog.conf file must be on you QNX target. In the file system or the IFS. Also the log file must be present.

Example for the mkifs build file. Add these lines into the binary section:
syslogd
[search=${QNX_TARGET}/etc] /etc/syslog.conf=syslog.conf

The file name for logging is configured in /etc/syslog.conf. By default it's /var/log/syslog. The logging file MUST exist before you start syslogd.

An example for a working ftp session:

# touch /var/log/syslog
# syslogd
# cat /var/log/syslog
Dec 3 08:45:41 localhost syslogd: restart
// ftp login as user "qnxuser"
# cat /var/log/syslog
Dec 3 08:45:41 localhost syslogd: restart
Dec 03 14:16:09 localhost ftpd[307224-1]: <--- 220 10.162.106.150 FTP server (QNXNTO-ftpd 20081216) ready.
Dec 03 14:16:13 localhost ftpd[307224-1]: command: USER qnxuser
Dec 03 14:16:13 localhost ftpd[307224-1]: <--- 331 User qnxuser accepted, provide password for qnxuser@localhost.
Dec 03 14:16:16 localhost ftpd[307224-1]: command: PASS ???
Dec 03 14:16:16 localhost ftpd[307224-1]: <--- 230-No directory! Logging in with home=/
Dec 03 14:16:16 localhost ftpd[307224-1]: <--- 230 User qnxuser logged in.
Dec 03 14:16:16 localhost ftpd[307224-1]: command: SYST
Dec 03 14:16:16 localhost ftpd[307224-1]: <--- 215 UNIX Type: L8 Version: QNXNTO-ftpd 20081216

Note that ftp is insecure! Use ftp during development only or use sftp instead.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.