⬇ Importing from Royal TS ⬇ Importing from Royal TS

⬇ Importing from Royal TS

Dmitry Machulo Dmitry Machulo

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

$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
{
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 exported file name.

If you’re having any difficulties importing data, please, contact us 👨🏼‍🔧

Add comment

Please sign in to leave a comment.