Article 5QG4F Remote login to /var/www/mycloud/any_directory/

Remote login to /var/www/mycloud/any_directory/

by
Pedroski
from LinuxQuestions.org on (#5QG4F)
Another question, if you have time:

I do this on my laptop:

Quote:
# do this on the local machine
ssh -L 9980:localhost:80 -p 22000 -i ~/.ssh/my_cloud_ed25519 pedro@123.456.789.123
then, in my browser,

Quote:
http://localhost:9980/phpmyadmin
opens phpMyAdmin on the cloud server

I was hoping to test a webpage this way, so I tried

Quote:
http://localhost:9980/var/www/mycloud/20BE4/
/var/www/mycloud/20BE4cw/ is directory containing webpages for 20 Business English class 4, beginning with index.php

I think the problem is, when I log in this way, I am in /home/pedro/ which is empty.

Is it possible to log in to /var/www/mycloud/20BE4/ directly??

I tried

Quote:
http://localhost:9980/../../var/www/mycloud/20BE4/
but the browser disregards /../../

I think then, I could test a webpage, before I have changed to domain name from my old web hosting company.latest?d=yIl2AUoC8zA latest?i=EmC8TdDzC-A:dB1pXiPbhCs:F7zBnMy latest?i=EmC8TdDzC-A:dB1pXiPbhCs:V_sGLiP latest?d=qj6IDK7rITs latest?i=EmC8TdDzC-A:dB1pXiPbhCs:gIN9vFwEmC8TdDzC-A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments