Importing from Royal TS Importing from Royal TS

Importing from Royal TS

Dmitry Babinsky Dmitry Babinsky

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),
  3. import the SSH config file into Termius.

Convert from Royal TS

Before running one of the scripts provided below, replace TerminalConnections.csv in the script you've chosen with the name of the file exported from Royal TS.

$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
tr -d '"' | awk -F',' \
'NR>1 {
print "Host \"" $28"/"$1 "\"";
print " Hostname " $23;
print " Port " $24;
print " IdentityFile \"" $26 "\"";
} < TerminalConnections.csv >ssh_config

If you're having difficulty importing data, please, contact us.

Add comment

Please sign in to leave a comment.