BACKUP and RESTORE MySQL Database
As from your question if the scenario is like that. 

You are on your local machine and accessing the remote servers A and B.

Process is simple

Step1 : Connect to server A where A is username of server

ssh A@192.168.9.214


Step2 : Generate the database dump of the server A as

mysqldump -uroot -proot  db1  &gt; database_db1.sql


Step3 : Copy the dump on the server B using SCP as

scp database_db1.sql B@192.168.9.215:/home/user/Desktop


Step4 : Connect to the Server B as

ssh B@192.168.9.215


Step5 : Restore the copied dump here using mysql client utility

mysql -uroot -proot db &lt; /home/user/Desktop/database_db1.sql