Remote access with SSH
If you have an SSH client on your host PC, you can use this for the connection, as OpenSSH is now available by default on all recent operating systems. For example, in the current Windows versions, this is a Windows function that can be used via PowerShell. Use the following command
ssh Administrator@<IP_ADDRESS>You may be asked to accept the host key during the first connection. Enter yes and press Enter. You will then be asked to enter the password for the user Administrator. You then have access to the command line of the Beckhoff RT Linux® Industrial PC.
Login via public key authentication
To increase security, you can set up public key authentication for SSH. This allows you to log in without having to enter a password each time.
- 1. If you have not already done so, generate a key pair on your local computer with the following command:
ssh-keygen- 2. Two files are created in your user's .ssh directory (usually
C:\Users<IhrBenutzername>.sshunder Windows):id_rsa(private key) andid_rsa.pub(public key). - 3. Copy the public key
id_rsa.pubto the industrial PC with Beckhoff RT Linux® using the following PowerShell command:
Get-Content $env:USERPROFILE\.ssh\id_rsa.pub | ssh Administrator@<IP_ADDRESS> "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"- 4. Ensure the correct authorizations on the IPC:
ssh Administrator@<IP_ADDRESS> "chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys"- 5. Then try to log in again via SSH. You should now be able to log in without entering a password:
ssh Administrator@<IP_ADDRESS>