====== Using SSH to Access the jPC from Another Device ====== As with most Linux systems you can securely access to the jPC form another device using Secure Shell (SSH). ===== Enabling the SSH Daemon ===== The SSH daemon (i.e. server) is masked by default. To enable it run the following commands: sudo systemctl unmask ssh.socket ssh.service sudo systemctl enable ssh.socket ssh.service sudo systemctl start ssh.socket ssh.service ===== Passwordless SSH Login ===== [[https://wiki.debian.org/Setup%20SSH%20Passwordless%20Login|Setup passwordless SSH login]] to avoid having to type in a password every time you open an SSH session. This is also typically required for remote deployment and debugging from a development PC. - On your remote device, generate a key pair ssh-keygen -t rsa The key pair will likely be stored in your user profile's home directory (i.e. ''$HOME/.ssh'' or on Windows ''C:\Users\{Username}\.ssh''). - Copy the public key to the jPC panel PC. Don't miss the trailing colon. scp $HOME/.ssh/id_rsa.pub admin@{jpc_ip_address}: - Register the public key as an authorized key on the jPC. On the jPC, run mkdir .ssh && cat id_rsa.pub >> .ssh/authorized_keys - The next time you start an SSH session from your remote device, you should not be asked to authenticate with a password. {{ https://downloads.comfiletech.com/jPC/videos/jpc_passwordless_setup.mp4?872x856 }} ===== Transferring Files to and from the jPC ===== ==== Use a Terminal Console ==== Files can be transferred to and from the jPC using any device with the [[https://man.openbsd.org/scp|scp]] (i.e. Secure Copy) command installed. It should be in stalled by default on most Windows 10 and Windows 11 PCs. To transfer a file from your remote device to the jPC, run scp {path_to_source_on_remote_device} admin@{jpc_ip_address}:{path_to_destination_on_jPC} To transfer a file from the jPC to your remote device, run scp admin@{jpc_ip_address}:{path_to_source_on_jPC} {path_to_destination_on_remote_device} Use the ''-r'' switch for recursive copies. scp also supports wildcards (.e.g. ''*.xml'') for selecting files matching a pattern. ==== Using a GUI ==== If you prefer to use a GUI, consider using the [[https://filezilla-project.org/|FileZilla client]]. {{ https://downloads.comfiletech.com/jPC/videos/jpc-filezilla-copy.mp4?880x796 }}