Find answers, ask questions, and connect with our
community around the world.

Forums Forums Web Design Stuck on terminal trying to connect to cPanel

  • Stuck on terminal trying to connect to cPanel

    Maverick created 1 week, 1 day ago 0 Member · 1 Post
  • Maverick

    Member
    September 14, 2019 at 12:32 am

    Hi, I’m trying to connect to cPanel – it’s actually like the 2/3rd one I’ve connected to but I’m having troubles. I’m following this guide: https://www.inmotionhosting.com/support/website/ssh/shared-server-ssh-mac Basically I did something because now I can’t even access the .ssh folder on my Mac – when I go into cd .ssh I get the following error: -bash: cd: .ssh: Permission denied I’ve been following along but obviously somewhere I’ve went wrong – any idea what I did wrong? I downloaded the public and private SSH key from the cPanel – put it in dekstop and followed the guide – I then actually tried to drag the public/private (don’t remember) key into .ssh folder – it asked me for the password and then it just got locked down. I’m very confused. Here is a log of the Terminal commands I made – I’m not the best at all these commands and concerned I may have done something wrong: Macbooks-MacBook-Pro:Head Studios Themes macbook$ cd ~ Macbooks-MacBook-Pro:~ macbook$ cd desktop Macbooks-MacBook-Pro:desktop macbook$ cp -frp id_rsa_myclient usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file … target_directory Macbooks-MacBook-Pro:desktop macbook$ cp -frp id_rsa_myclient ~/.ssh Macbooks-MacBook-Pro:desktop macbook$ ssh-add -K id_rsa_myclient @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for ‘id_rsa_myclient’ are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Macbooks-MacBook-Pro:desktop macbook$ ssh-add -K id_rsa_myclient @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for ‘id_rsa_myclient’ are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Macbooks-MacBook-Pro:desktop macbook$ ssh-add -K id_rsa_myclient @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for ‘id_rsa_myclient’ are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Macbooks-MacBook-Pro:desktop macbook$ chmod 400 ~/.ssh/id_rsa_myclient chmod: /Users/macbook/.ssh/id_rsa_myclient: No such file or directory Macbooks-MacBook-Pro:desktop macbook$ chmod 400 ~/.ssh/ Macbooks-MacBook-Pro:desktop macbook$ ssh-add -K id_rsa_myclient @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for ‘id_rsa_myclient’ are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Macbooks-MacBook-Pro:desktop macbook$ chmod 600 ~/.ssh/id_rsa chmod: /Users/macbook/.ssh/id_rsa: Permission denied Macbooks-MacBook-Pro:desktop macbook$ chmod 400 ~/.ssh/id_rsa chmod: /Users/macbook/.ssh/id_rsa: Permission denied Macbooks-MacBook-Pro:desktop macbook$ chmod 400 ~/.ssh/id chmod: /Users/macbook/.ssh/id: Permission denied Macbooks-MacBook-Pro:desktop macbook$ cd .ssh -bash: cd: .ssh: No such file or directory Macbooks-MacBook-Pro:desktop macbook$ cd ~ Macbooks-MacBook-Pro:~ macbook$ cd .ssh -bash: cd: .ssh: Permission denied Macbooks-MacBook-Pro:~ macbook$ sudo chown -R ubuntu:ubuntu .ssh Password: chown: ubuntu: illegal group name Macbooks-MacBook-Pro:~ macbook$ cd .ssh -bash: cd: .ssh: Permission denied Macbooks-MacBook-Pro:~ macbook$ – by hq overview RussianInRecovery – –

Reply to: Maverick
Your information:

Cancel
Original Post
0 of 0 posts June 2018
Now