From: Dongju Chae Date: Tue, 8 Jun 2021 08:57:26 +0000 (+0900) Subject: [Docs] Add documents to enable ssh connections X-Git-Tag: accepted/tizen/unified/20220103.130045~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=294b933827668241cb0c5f370be1d41a1be50f0e;p=platform%2Fadaptation%2Fnpu%2Ftrix-engine.git [Docs] Add documents to enable ssh connections This patch adds documents to enable ssh connections. Signed-off-by: Dongju Chae --- diff --git a/docs/markdown/FastModels.md b/docs/markdown/FastModels.md index ce3635c..e199ef9 100644 --- a/docs/markdown/FastModels.md +++ b/docs/markdown/FastModels.md @@ -92,6 +92,34 @@ sh-3.2# sshfs {SSH_ID}@{YOUR_UBUNTU_IP}:/opt/trinity/share /mnt sh-3.2# ls /mnt ``` +We highly recommend to append this command to your `/init` script. + +### Multiple Sessions using ssh + +If you need multiple sessions, a ssh server should be prepared inside the FastModel. +To enable ssh connections for `root` user, please follow the below instructions. + +```console +sh-3.2# passwd +sh-3.2# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key +sh-3.2# vi /etc/ssh/sshd_config +. . . Omission . . . +PermitRootLogin yes +``` + +After that, you can start the ssh daemon inside the FastModel. This can be also appended to your `/init` script. +```console +sh-3.2# /usr/sbin/sshd +``` + +Then, ssh connections from Host PC can be established with 8022 port (i.e., port forwarding). +```console +$ ssh root@localhost -p 8022 +root@localhost's password: +Welcome to Tizen +root:~> +``` + ### Package Installation Trinity OS supports the `taos-mgr` command to give developers a convenient development environment. For example, if you`` want to install the curl package, please type commands like below.