Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I have an embedded linux device. I can connect to the device and I can upload or download files. No problem with this. But, at first connection, I want to connect to "/" directory instead of "/root". In the device file system, there are files ssh_config and sshd_config under /etc/ssh directory. I think I have to do something with these files but I don't know what.
I don't exactly know what mean "/root" and "/" directories. I think that the real root directory is "/" directory which is empty but when I connect with filezilla, the "/root" directory is the default so I had to go back to / directory everytime.
/ is the very top of the directory. /root is the home directory of the user called "root" who is the ultimate superuser. My username is jdkaye so my home directory is /home/jdkaye
Code:
root@AttilaII:/usr/bin# cd ~
root@AttilaII:~# pwd
/root
jdkaye@AttilaII:/usr/bin$ cd ~
jdkaye@AttilaII:~$ pwd
/home/jdkaye
In the device file system, there are files ssh_config and sshd_config under /etc/ssh directory. I think I have to do something with these files but I don't know what.
What proctocol are you connecting with? ftp?
sshd & ssh refer to the ssh protocol.
In any case, those would not be the correct file to alter as they deal with how the connection is made, not what directory you login to.
Most likely the program that needs to be adjusted is filezilla as it is making the connection and specifying what directory it wants. I have never used it so I can't help you with that.
In any case, those would not be the correct file to alter as they deal with how the connection is made, not what directory you login to.
Most likely the program that needs to be adjusted is filezilla as it is making the connection and specifying what directory it wants. I have never used it so I can't help you with that.
Thank you for your answer. I realized that the protocol was ftp as you said.
At Filezilla's side, remote directory can be adjusted as in the image Habitual posted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.