Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2008
    Posts
    10

    Default Remote mysql server setup - ssh for setup only?

    I'm trying to set up a remote mysql server and am having issues getting WHM to key into the remote server and su (i can do it manually from putty from one server to the other root -> user) but whm doesn't want to.

    But anyway, is SSH only for the initial setup of the remote server or is it continually used to set up/backup from then on?

    If the former then I can just use root->root for setup. If not I'll have to spend another few hours trying to figure out a way to get this working..

    Thanks,

    -Tim

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    378
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Alcedema View Post
    I'm trying to set up a remote mysql server and am having issues getting WHM to key into the remote server and su (i can do it manually from putty from one server to the other root -> user) but whm doesn't want to.

    But anyway, is SSH only for the initial setup of the remote server or is it continually used to set up/backup from then on?

    If the former then I can just use root->root for setup. If not I'll have to spend another few hours trying to figure out a way to get this working..

    Thanks,

    -Tim
    I would look to setup public key authentication and allow root to login to SSH directly via key with "PermitRootLogin without-password" in /etc/ssh/sshd_config.

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Also make sure you can login from the WHM server to the MySQL server via SSH (ssh to the WHM server then ssh from WHM server to the remote MySQL server). Your ability to directly login to the MySQL server doesn't do much to ensure WHM can connect to that server.

  4. #4
    Member
    Join Date
    Mar 2008
    Posts
    10

    Default

    I was connecting the two machines via ssh just fine, I set up the ssh key from WHM root to a user on the sql server. It just always said the password was incorrect, which it wasn't.

    I would also prefer to not have root -> root keys enabled for security reasons, especially to our database server. So our best bet is root -> user and then using sudo.

    Mind you, is there a list of commands that will need to be run by the remote user with sudo?

    Thanks,
    -Tim

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Alcedema View Post
    I was connecting the two machines via ssh just fine, I set up the ssh key from WHM root to a user on the sql server. It just always said the password was incorrect, which it wasn't.

    I would also prefer to not have root -> root keys enabled for security reasons, especially to our database server. So our best bet is root -> user and then using sudo.

    Mind you, is there a list of commands that will need to be run by the remote user with sudo?

    Thanks,
    -Tim
    This presentation from the 2008 cPanel Conference will shed light on what is done as part of the remote MySQL server configuration/setup process:

    http://docs.cpanel.net/twiki/pub/All...ote_Server.pdf

Similar Threads & Tags
Similar threads

  1. Setup Remote MySQL server
    By Maxence in forum New User Questions
    Replies: 14
    Last Post: 09-03-2011, 04:03 AM
  2. Setup MySQL Remote server
    By gabidavila in forum New User Questions
    Replies: 2
    Last Post: 06-14-2010, 07:30 PM
  3. Setup Remote MYSQL Server
    By CoolMike in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-15-2010, 01:48 PM
  4. Setup Remote Mysql Server
    By izmirhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-28-2008, 03:50 AM
  5. How to setup remote MySQL server
    By hotice007 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-19-2003, 01:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube