Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on Remote access between two servers using ssh in the Shared & Semi-Dedicated forum
I'm attempting to set up access between two servers, one is one an SDX account and one is a shared account. What I'm trying to ...

  1. #1
    JPC Member
    Join Date
    Oct 2003
    Posts
    7

    Remote access between two servers using ssh

    I'm attempting to set up access between two servers, one is one an SDX account and one is a shared account. What I'm trying to do is set up an automatic backup of a MySQL db dump to the shared plan server from the SDX server. I've created an ssh key on both servers (I was told that's the easy way to make sure the necessary directories were there), but when I try to scp the public key over from the SDX server, I get a permission denied error. Using FTP I attempted to go to the .ssh directory and get the same error from just trying to access it.

    Did I possibly do something wrong?

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    I'm not sure of the answer you are looking for, but you could probably safely perform a server to server ftp within the datacenter.
    Good luck

  3. #3
    JPC Member
    Join Date
    Oct 2003
    Posts
    7
    I'm looking to make it automatic. We've been hacked several times over the years on a BBS on the SDX server (not anything to do with the host), and I'd like to have a copy of the database on another server in case the SDX server is hacked again and the mysqldump is deleted that is created via cron job already.

    This is what I'm trying to do. When I got to the point where I copy the public key over from the SDX server using ssh, I got a permission denied error, which it didn't specify. I then tried accessing the .ssh folder on the shared server and it gave me the same error. Then I tried accessing the folder via FTP and got the same thing. I dunno if the error is caused by chmod or something else (like my account not having permissions to access said folder for whatever reason, although I created that folder using ssh-keygen).

  4. #4
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    Since you have access to both accounts login to both accounts via ssh. Copy the text from id_rsa.pub on SDX and paste it in authorized_keys2 file on the shared server. Both files are in ~/.ssh folder on respective servers. If authorized_keys2 file does not exist you can create it.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  5. #5
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Have you tried to SSH / SCP / FTP to anything else from the jailshell? Most (or all?) of those commands are blocked = permission denied. They don't want to have the servers used as proxies / to tunnel through and those limitations are supposed to help with that.

    So, move the file via your own computer, as Masood suggests.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  6. #6
    JPC Member
    Join Date
    Oct 2003
    Posts
    7
    I cannot access anything in the .ssh folder, I've tried. I don't understand why it is doing this. I think I'll try making another key on the shared account and see if that fixes the problem.

    Edit: because I can't access that folder, I can't even create a new key. I dunno what the problem is :/

  7. #7
    JPC Dream Team JPC-Veena's Avatar
    Join Date
    Sep 2002
    Posts
    572
    Rowan,

    Please open a support ticket and explain the issue, I'm sure they can help you with it.
    Veena K John
    Jaguar Technologies, LLC.

    Helpful Links
    Knowledge Base | Network Status | Current Specials

    Need a Manager?
    (pm) | (email) David, Customer Service Manager

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •