--ssh-user (-ru, -su)
This page is part of MariaDB's MariaDB Documentation.
The parent of this page is: mariadb-shell for MariaDB Shell
Topics on this page:
Overview
In 23.03, 23.02, 23.01:
The username to use to connect to the remote host
In 22.12, 22.10:
Not present
See also: mariadb-shell for MariaDB Shell, in 23.02, in 23.01, in 22.12, and in 22.10
EXAMPLES
Password Authentication
To connect to a database server over a remote SSH tunnel with password authentication:
$ mariadb-shell \
--ssh-host HOSTNAME --ssh-port SSH_PORT \
--ssh-user SSH_USER --ssh-password SSH_PASSWORD \
--port TCP_PORT \
--user DATABASE_USER --password DATABASE_PASSWORD
Public Key Authentication
To connect to a database server over a remote SSH tunnel with public key authentication:
$ mariadb-shell \
--ssh-host HOSTNAME --ssh-port SSH_PORT \
--ssh-user SSH_USER --ssh-key /home/MY_USER/.ssh/id_rsa --ssh-key-pass SSH_KEY_PASSWORD \
--port TCP_PORT \
--user DATABASE_USER --password DATABASE_PASSWORD
CHANGE HISTORY
Release Series | History |
---|---|
23.03 |
|
23.02 |
|
23.01 |
|
22.12 |
|
22.10 |
|