Import from Royal TS

This article describes how to import data from Royal TS.

For that you'll need to:

  1. Export your terminal connections from Royal TS to a CSV file.

  2. Convert the CSV file to an ssh config file (see below).

Convert from Royal TS

Windows PowerShell
Bash
Windows PowerShell
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
$content = Import-Csv -Path TerminalConnections.csv
$content | %{
'Host "{0}/{1}"' -f $_.Path, $_.Name
' Port {0}' -f $_.Port
' Hostname {0}' -f $_.URI
' IdentityFile "{0}"' -f $_.PrivateKeyPath
}>ssh_config
Bash
{
tr -d '"' | awk -F',' \
'NR>1 {
print "Host \"" $28"/"$1 "\"";
print " Hostname " $23;
print " Port " $24;
print " IdentityFile \"" $26 "\"";
}'
} < TerminalConnections.csv >ssh_config

Substitute 'TerminalConnections.csv' with the name of the exported file.