# Managing Files on Self-Hosted Servers

**URL:** https://discussion.scottibyte.com/t/managing-files-on-self-hosted-servers/84
**Category:** Uncategorized
**Created:** [May 8, 2022, 8:21pm UTC](https://discussion.scottibyte.com/t/managing-files-on-self-hosted-servers/84 "2022-05-08T20:21:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scott](https://discussion.scottibyte.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@scott](https://discussion.scottibyte.com/u/scott)
#### Post date: [May 8, 2022, 8:21pm UTC](https://discussion.scottibyte.com/t/managing-files-on-self-hosted-servers/84/1 "2022-05-08T20:21:27Z")

</div>

Most folks use ssh to establish a terminal session with a remote VM or LXC/LXD container server instance. This works fine and you can use command line tools like the vi and nano editors as well as scp to copy files to and from other systems.

This presentation shows an easier way to interface with your many VM or LXC/LXD instances which may not have an installed GUI for efficiency reasons.

Be sure you have install openssh-server on the systems you will be interacting with:

```auto
sudo apt install open-ssh-server

```

To remove openssh-server which might be required to clear replicated signatures on cloned containers before you install openssh-server

```auto
sudo apt remove --purge openssh-server

```

Generate “ssh” keys so that you can share them with your remote server instances:

```auto
ssh-keygen -t rsa -b 4096

```

Copy your keys to a remote system for access:

```auto
ssh-copy-id user@host

```

You can then ssh to the remote system and not be prompted for a password:

```auto
ssh user@host

```

You will not be prompted for a password when you use the ssh, scp, or sftp commands to the remote system since the key loaded on the remote system authenticates you.

As explained in the video, you can use your Linux file manager such as Nautilus (default in Ubuntu), Nemo, Dolphin, Thunar, Konqueror and others to connect to your VM’s or LXC/LXD instances with an SFTP access string:

```auto
sftp://test1

```

You can also create Bookmarks in your Linux File Manager to provide easy access to systems that you frequently access.
