If users know account passwords and enter them inside SSH sessions, these passwords appear in the logs in plain text — this is JumpServer's default behavior for any user input.
To change this behavior:
Open the configuration file:
vi /opt/jumpserver/config/config.txt
Add the following line at the end of the file:
DISABLE_INPUT_AS_COMMAND=true
Restart the application:
jmsctl restart
After this, passwords will no longer be saved in the logs.
Note: Only passwords entered in response to a
password prompt (for example, after running the sudo command) will not be
logged.
If a user types their password somewhere else — for example, into a
text file — the password will still appear in the command logs.
| << Where Does JumpServer Store Copies of Files Transferred via SFTP and RDP? | Syslog configuration >> |
Stuck? If you are running a pilot, write to support@afi-d.com or in your project's Telegram group. Community Edition users can buy a support subscription: see Technical support. Video guides are on our YouTube channel.