This article describes how to import data from Kitty Portable.
For that you'll need to:
- convert the data into an SSH config file (see below),
- 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.
Windows PowerShell
WSL
$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.
7
-5
Was this article helpful?
1 out of 7 found this helpful
Add comment
Please sign in to leave a comment.