Importing from Kitty Importing from Kitty

Importing from Kitty

Dmitry Babinsky Dmitry Babinsky

This article describes how to import data from Kitty Portable.

For that you'll need to:

  1. convert the data into an SSH config file (see below),
  2. import the resulted file into Termius.

Convert from Kitty Portable

Before running one of the scripts provided below, replace \Sessions\ in the script you've chosen with the directory where Kitty Portable stores your data.

$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
Get-ChildItem .\Sessions\ | Foreach-Object {
echo "Host $_.Name"
$content = Get-Content $_.FullName
$content | where { $_ -match '(^PortNumber)|(^HostName)|(^UserName)\\' } | %{ $_ -replace 'PortNumber',' Port' -replace 'HostName',' Hostname' -replace 'UserName',' User' -replace '\\', ' '}
} > ssh_config
for i in $(ls .\Sessions\); do
echo "Host $i"
grep -e '^PortNumber\\' -e '^HostName\\' -e '^UserName\\' Sessions/$i \
| sed -e 's/HostName/ Hostname/g' \
-e 's/PortNumber/ Port/g' \
-e 's/UserName/ User/g' \
-e 's,\\, ,g'
done > ssh_config

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

Add comment

Please sign in to leave a comment.