William Higgs
New Around Here
Hello. I have a question regarding the firmware's capability that allows users to connect to their device via ssh. So, I have configured my router so that I can remotely connect to it via ssh using the router username and password, and I would expect, when logging into the router via ssh, I would login as the user account that I log into the router GUI as, but that is not what I am seeing. Instead, I appear to be logging in as the root account. I say "appear" because the starting directory that I am logging into is strange too. Normally, one would expect the user account's directory to be located in the /home folder, but the root user account that I am logging in as is located in the /tmp/home/root directory. Stranger still, in an attempt to have the router tell me where the home folder is located, I entered "echo ~/" into the console, and the router returned "/root". So we have three different folders that are potentially connected to the root account, which is the account that I automatically login is when I ssh to my router via "ssh username@ip" (username is NOT root). Is everything that I have described here by design? I just wanted to play around with the entware package manager, but the directory that the binary is located in is not in the PATH environment variable, so my thought was to modify the .bashrc file that autoruns when a user logs into the server to add the directory path to the PATH environment variable, but, as you can imagine, I am having trouble locating it. Even if there is another way to accomplish this, at this point, I just want to figure out what is going on with this router, as I get the impression that it is just as confused as I am.