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:


    You are connected now To start mysql prompt

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

    press enter then enter password:


    if you see the above prompt you are connected

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

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