[Docs] Add documents to enable ssh connections
authorDongju Chae <dongju.chae@samsung.com>
Tue, 8 Jun 2021 08:57:26 +0000 (17:57 +0900)
committer채동주/On-Device Lab(SR)/Staff Engineer/삼성전자 <dongju.chae@samsung.com>
Wed, 9 Jun 2021 01:36:04 +0000 (10:36 +0900)
This patch adds documents to enable ssh connections.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
docs/markdown/FastModels.md

index ce3635c..e199ef9 100644 (file)
@@ -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.