Azure Troubleshooting Reference
Note: This page applies to SFTP Gateway version 2.x. Visit Here for documentation on version 3.x.
Overview
Commands
Some commands may require sudo
.
sftpgw version
: Get the current version of SFTP Gateway.sftpgw.sh help
: Get the help documentation for thesftpgw.sh
command.systemctl restart sftpgw-admin-api
: Restart thesftpgw-admin-api
service.systemctl status dirsrv@$(hostname)
: Get the status of the LDAP service.netstat -ltnp
: Get open ports, and their associated services./usr/local/bin/resetadminpassword
: Reset the admin password for the web admin UInginx -t && service nginx restart
: Restart the Nginx service.swapon --show=size
: Determine swap partition size.service incrond restart
: Restart incron service.s3sync
: Run sync operation from Blob to local disk for downloads and shared directories.tail -f <log file>
: Stream file updates to the console.
SSH Commands
ssh-keygen -t rsa -C test.key -f test.key -q -N ""
: Generates a public and private key.ssh-keygen -y -f <private.key>
: Gets the public key from a private key.
Log file locations
/var/log/sftpgw/sftpgw-admin-api.log
: Log file for thesftpgw-admin-api
Java service/var/log/sftpgw/movetos3.log
: MovetoS3 log file./var/log/secure
: OpenSSH authentication, and audit logging for SFTP/var/log/sftpgw/cloudinit.log
: First launch and initial configuration activity
Notable file paths
/home/<user>/.sftpgateway/user.properties
: SFTP user's properties file./opt/sftpgw/sftpgateway.properties
: SFTP Gateway global properties file./opt/sftpgw/application.properties
: Java properties file./root/default-sftpgateway-password.txt
: Contains default password for the web admin UI./etc/ssh/sshd_config
: Configuration file for SSH
Blob storage locations
<container>/<user>/uploads/
: Default uploads directory location.<container>/<user>/downloads/
: Default downloads directory location.<container>/shared/
: Default shared directory location.
LDAP commands
ldapsearch -D cn=admin -w $ldappassword
: Performs an LDAP search.ldapsearch -D cn=admin -w $ldappassword -b uid=<user>,ou=People,dc=sftpgateway,dc=com
: Searches for a specific user.