RPort
  • RPort Knowledge Base
  • đź‘€WHAT IS RPORT
    • Features and benefits of RPort
      • Full feature list
    • Screenshots
    • Release Notes
      • 1.1.2
      • 1.1.0
      • 1.0.5
      • 1.0.4
      • 1.0.3
      • 1.0.2
      • 1.0.1
  • 🚀GETTING STARTED
  • Install the RPort Server
    • Launch RPort in the cloud
    • Install on-premises
    • Install on Vultr
    • Install on Azure
    • Install on AWS EC2
    • Install on Digital Ocean
    • Install on Scaleway
    • Install on Google Compute
    • Install on Hetzner Cloud
    • Install RPort on any virgin cloud VM
    • Change the FQDN of the RPort server
    • Enable two factor authentication
      • Use push on mobile for 2FA
      • Use TOTP
  • Connecting Clients
  • Using the remote access
    • Creating tunnels
      • VNC via browser
      • VNC via VNC® Viewer from RealVNC®
      • RDP via Browser
    • Open SSH from the browser
    • Scp,sftp through a tunnel
  • Renaming and tagging of clients
  • Organize clients with groups
  • Activate the vault
  • Manage users and permissions
  • Video Courses
    • Installation Preparation
    • Install on Prem
    • Install on Cloud
    • Client installation
    • Remote Access
    • Network communication
  • 🗣️ NEED HELP?
    • Troubleshoot common problems
      • RPort Server not starting
      • Restart rport through a tunnel
      • Attributes file path not set
      • Recover lost passwords
      • Client is not connecting
      • Id is already in use
  • 🔦DIGGING DEEPER
    • Using the API
      • Create client credentials
    • RPort Technology Explained
      • RPort Security Model
    • Commands and Scripts
      • Executing commands
      • Executing scripts
      • Tacoscript
    • The scheduler
    • File copy and reception
    • Client Configuration Options
      • Supervision of OS updates
      • Script and command execution
    • Advanced client management
      • Install the RPort client manually
      • Uninstall the RPort client
    • Server Maintenance
      • Monitoring of RPortd
      • Updating RPort
      • Backing up the rport server
      • Renewing certificates
    • FAQ
      • How to use Cloudflare
    • High Availability
    • Install on macOS
Powered by GitBook
On this page
  • RPort 0.9.12 and newer
  • RPort 0.9.5 and older

Was this helpful?

Export as PDF
  1. 🗣️ NEED HELP?
  2. Troubleshoot common problems

Recover lost passwords

Learn how to get access to the RPort server if you have lost all password

PreviousAttributes file path not setNextClient is not connecting

Last updated 1 year ago

Was this helpful?

RPort 0.9.12 and newer

RPort 0.9.12 has introduced a command line interface to set password of existing users.

Log in via SSH to your RPort server. Switch to the rport user account by executing su - rport -s /bin/bash. 🙅‍♂️ Do not perform the next steps from the root user account!

To change a password of a user, execute:

rportd user change -u <USERNAME> -p -c /etc/rport/rportd.conf

You will be asked interactively for the new password.

RPort 0.9.5 and older

Step 1 – log in via SSH

To reset a lost password, login to your RPort server via SSH and become the root user. If you have installed the RPort server with the script, a sqlite3 database is used for authentication.

If you are not sure what is the underlying storage for users and passwords, open the configuration file with a page, for example, less /etc/rport/rportd.conf and scroll down to the [api] section.

Step 2 – create a new hash

If you are using a static pair of username and password – option number 1 in the above screenshot – just change it and restart the rport server.

If users and passwords are stored in a json-file or in a database, all passwords are stored as brypt hashes. Create a new hash and store it in the variable PASSWD_HASH.

NEW_PASSWD="<TYPE_IN_HERE>"
PASSWD_HASH=$(htpasswd -nbB password $NEW_PASSWD|cut -d: -f2)

Step 3 – update the password

On a json file

If you are using a json file, open it with a text editor, go to the line of the user you want the password to be updates, and replace the password hash by the one previously created.

Restart the rport server using systemctl restart rport and you are done.

On a sqlite database

Check who is in there.

DB_FILE=/var/lib/rport/user-auth.db
cat <<EOF|sqlite3 $DB_FILE
.headers ON
SELECT * FROM users;
EOF

Update the password hash of a user

DB_FILE=/var/lib/rport/user-auth.db
cat <<EOF|sqlite3 $DB_FILE
UPDATE users SET password="$PASSWD_HASH" WHERE username="admin";
EOF

This will update the password of the user admin with the previously created hash. đź’Ş You are done. You don't need to restart the rport server.

cloud-installer
Check where users and passwords are stored
Create a password hash