Import from Kitty
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).

Convert from Kitty Portable

Windows PowerShell
WSL
1
$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
2
Get-ChildItem .\Sessions\ | Foreach-Object {
3
echo "Host $_.Name"
4
$content = Get-Content $_.FullName
5
$content | where { $_ -match '(^PortNumber)|(^HostName)|(^UserName)\\' } | %{ $_ -replace 'PortNumber',' Port' -replace 'HostName',' Hostname' -replace 'UserName',' User' -replace '\\', ' '}
6
} > ssh_config
Copied!
1
for i in $(ls .\Sessions\); do
2
echo "Host $i"
3
grep -e '^PortNumber\\' -e '^HostName\\' -e '^UserName\\' Sessions/$i \
4
| sed -e 's/HostName/ Hostname/g' \
5
-e 's/PortNumber/ Port/g' \
6
-e 's/UserName/ User/g' \
7
-e 's,\\, ,g'
8
done > ssh_config
Copied!
Substitute '.\Sessions\' with the directory where Kitty Portable stores your data.
Last modified 1yr ago