Thanks for the heads up, I just clicked the create ticket button lol. You may have to bear with me here as I’m not sure what AMP actually is as it differs from Hostinger in the sense that I do not know which questions relate to which product.
TL;DR Took me forever, but I’m 95% sure I’m in the linux command line. I may not be root though, and it seems the commands to make me root might be “not supported”. Basic commands like cd and ls work, but just about nothing else. Any ideas why?
I figured I had to install Java; I’m trying to figure out how to do that. I found a button that said “connect to SFTP” and installed WinSCP on my computer to make the button work. I think the words for what this allows me to do is ‘SSH into the server’? WinSCP has a button that says “open terminal”, and I entered the command you provided there under the current directory “/”, the command failed with return code 127 “command ‘getamp’ not supported”. ‘sudo getamp installJava’, ‘installJava’, ‘sudo -s getamp installJava’, and ‘getamp’ all fail with the same return code and command line prompt that the first word (sudo, getamp, or installJava depending on what I typed) is not supported. I also downloaded PuTTy and opened a session to see if it would work that way, but again received error messages saying the commands were not supported:
Welcome To CubeCoders AMP Embedded SSH
admin@AMP-ADS01:/$ sudo getamp installJava
-sh: Command ‘sudo’ not supported.
When I attempt to enter this command in the interface where I noticed the error message I mentioned in my previous post (a page that I can access after managing the session), it returns the following, with all of the above-mentioned attempts at recombining your prompt:
Unknown or incomplete command, see below for error
sudo getamp installJava<–[HERE]
There is also what appears to be a command line at the bottom of a page titled “deployment log”. Attempting the commands here does nothing; the text just disappears.
In terms of hostinger guides and support (I suspect this is outside the scope of the forum but I’m putting all the information I have out there just in case), this page
indicates that it is possible to run commands, but does not indicate where to run the commands.
This page:
indicates that I was probably on the right path with WinSCP and PuTTY, but does not indicate why the commands would not be supported. I attempted connecting via SSH using the windows command prompt as indicated in the video (slightly different steps) and seem to have connected, but could not log on:
C:\Users\user>ssh -p 2223 sftp://admin@191.101.1.78
(sftp://admin@191.101.1.78) Password:
sftp://admin@191.101.1.78’s password:
Permission denied, please try again.
I attempted both entering my username for the first prompt and password for the second, as well as my password for both prompts, and nether worked.
The following is a few more troubleshooting steps I’ve taken since determining that I probably have figured out how to access the Linux command line:
Clicking on “open terminal” in WinSCP asks if I want to open a separate shell session. “current SFTP-5 session does not support the command you request…” and so on, pretty decent wall of text. Though sudo is not supported, it does let me run at least cd, ls, and pwd. I found a stack overflow post that says I should be able to list all my available commands with compgen, or something to do with creating a function, but nether ‘function’ nor ‘compgen’ are supported.
Same results in PuTTy.
I keep triple checking that I am attempting to do this in the root directory, and it is still the case. Per troubleshooting steps from a StackOverflow post from a guy with a similar issue, I attempted the commands “which sudo” and “echo $PATH”. Results:
admin@AMP-ADS01:/$ which sudo
-sh: Command ‘which’ not supported.
admin@AMP-ADS01:/$ echo $PATH
admin@AMP-ADS01:/$
visudo and su are also not supported:
admin@AMP-ADS01:/$ su
-sh: Command ‘su’ not supported.
admin@AMP-ADS01:/$ visudo
-sh: Command ‘visudo’ not supported.
admin@AMP-ADS01:/$ su -
-sh: Command ‘su’ not supported.
Aight I gotta go. There seems to be some issue with permissions, maybe? If you’ve got any idea what might be going on here I’d really appreciate it.