How to access server via ssh in ubuntu and mysql

    To access server via ssh in ubuntu 1. Open terminal first 2. Write following command
    $ ssh <serverusername>@<serverhost>

    Is give some message connection can't established type 'yes' to continue

    then enter password

    your ssh password:

    <serverusername>@<serverhost>$

    You are connected now To start mysql prompt

    <serverusername>@<serverhost>$mysql -h <mysqlhost> -u <mysqluser> -p

    press enter then enter password:

    mysql>

    if you see the above prompt you are connected

    where,
       <serverusername> ssh user name
       <serverhost> hostname
       <mysqlhost> mysql hostname
      <mysqluser> mysql username

    Note: when you type password characters will not be shown to you
    5
    Average: 5 (1 vote)