Announcement Announcement Module
Collapse

myhosting.com Forum Guidelines

Welcome to the myhosting.com Forums! The purpose of this forum is to allow you to discuss topics relating to hosting and topics of interest with other myhosting.com Customers. The primary focus should relate to issues not generally included in our Wiki or Control Panel, or information not provided by our Customer Support Team. Some examples include programming and coding support, web site design ideas and SEO practices.

The forum is not meant as a replacement to our Wiki or Customer Support. We highly recommend searching our Wiki before posting on the forum. Also, if you have a question for our Customer Support team, please contact them as you would normally.

We ask that if you have any complaints or questions relating specifically to your account, that you address them to our Customer Support department. Do not post personal account information such as passwords or other sensitive and private information the forum, as this type of information is best kept secret. Also, please be respectful of other users and refrain from defamatory comments or use of coarse language.

We will visit the forum from time to time, and contribute to various topics. We reserve the right to delete any posts which are deemed offensive or against the spirit of the forum. Any spamming or illegal activity will not be tolerated. We also reserve the right to block any user who violates these guidelines.

To get started, we welcome you to sign up at our User Management site. Any account created there will have access to these forums, our Wiki, our Ideas site and commenting permission on our Status Blog.
See more
See less
SSH Commands Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SSH Commands

    Newb question

    I'm very familiar with using SSH but was quite surprised to discover that wget and tar didn't work in the shell. Is there a list somewhere of what commands do work?

  • #2
    Limited SSH command set a security measure

    After I logged into SSH I entered the "help" command to find the commands available. Unfortunately with shared hosting there aren't many beyond the usual file copy and move commands.

    The limited command set is apparently a security measure. Personally, I'm surprised that even "man" is disabled.

    I sent a couple of messages to support, asking for them to consider adding basic commands like tar, wget, rsync, man... to the command set, as they are some of the more useful terminal commands. I even gave them the link to your forum post. The only response I received was "you need to sign up for VPS to enable full SSH command set."

    Hope this helps. Back to FTP for me.

    Comment


    • #3
      MyHosting SSH access on shared webspaces is more locked down. I guess they consider SSH to be a security risk, to which I question why bother providing that access at all? I was surprised that I couldn't even create a duplicate of a folder using the "cp" command.

      Blocked commands that would make my life easier are: "rsync", "wget", "tar", "mv", the aforementioned "cp", and even "man".... They don't even allow "man".

      Anyway, to obtain a list of the available SSH commands, log into the terminal and enter "help" without quotes on a blank line. The command returns the list of shell commands, but remember you can't get documentation on them because... no "man".

      Comment


      • #4
        Hi Tony,

        Sorry you've had difficulty. Is there any particular commands you're looking for? Unfortunately in a Shared Hosting environment we have to be careful what is enabled and what isn't so we can mitigate any security risks.

        Regarding VPS hosting, there are options available for under $20, even as little as $14.41, so having a fully customizable environment is easy to achieve.

        Comment


        • #5
          Useful SSH commands

          I agree with tony's short list - tar, wget, rsync would be extremely useful. I work a lot with Drupal and it sounds like I should really be looking at VPS for my clients. I now have three on your system and am really pleased with everything but this aspect of the hosting.

          Comment


          • #6
            Hi Tima,

            I've had numerous discussions with your support team about some of the security features imposed on shared hosting clients. However, some of these decisions seem to be without regard. For instance, simple terminal commands like 'man' are missing from the list. Often I forget how to use a command and would like the 'man'ual guidance. (pun intended).

            I can understand, based on the unlimited file space offering, MyHosting's unwillingness to offer 'rsync' to prevent excessive disk usage by remote copying.

            Instead, why not at least allow 'tar'? That way we could compress our development websites into a single archive, upload them to the server, and extract them into the specific locations through the terminal. Copying a 3MB archive is faster than copying 30MB of individual files. Plus, this workflow, while not perfect, reduces the room for error.

            I've looked into VPS hosting, but I don't have the server skills I need to manage an entire server. All I need are a good list of copy commands. 'rsync' would be nice to have on first setup when I'm transferring sites from one host to MyHosting. After that, I don't mind if it gets disabled.

            BTW: Since I posted my first two messages (the second being because I didn't realize the first hadn't been moderated), I found that 'cp', 'mv', and some others are now available. When logged into the home folder above "webspace", a directory list displays a current set of available commands.

            Just so you know, the 'scp' command runs but triggers an error that it cannot open a shared security library.

            Thanks for the replies, all!

            Comment


            • #7
              In terms of uncompressing files on your hosting space, it's currently possible to do so through your control panel via the File Manager. I believe tar files should work but zip files work for sure.

              Comment


              • #8
                Jeremy, thanks for the tip. However, I still submit that if SSH access is offered, then a useful set of commands consistent with other hosts should be permitted. By all means, disable "sudo", "apt-get", "port", etc. But allow "rsync", "scp" (without error), "tar", and "man"...! If those commands aren't offered, then just dump SSH because most of the other tasks can be performed through ftp.

                Also, those who purchase a higher plan ($20/month instead of $5) should have fewer restrictions imposed. Apparently all users are limited to 2 concurrent ftp sessions. Most other web hosts allow 4. I find my file/directory compare utility breaks the 2 concurrent sessions simply by changing the base directories. But that's the topic of another thread.

                Comment


                • #9
                  Hello Tony, we're looking into this further for you to see what we might be able to do.

                  Comment


                  • #10
                    What does the scp command do??

                    Comment


                    • #11
                      Originally posted by Stoddard View Post
                      What does the scp command do??
                      you can use the scp command to copy files and directories securely between remote hosts without starting an FTP session or logging into the remote systems explicitly.

                      Comment

                      Working...
                      X