Thinking Out Loud

June 7, 2013

Migrating Windows PuTTY registry to Linux

Filed under: linux — mdinh @ 4:14 am

I have over 100+ saved sessions in PuTTY running on Windows and was looking for a way to move those session to Linux.

Here’s a demo on how to move those PuTTY sessions.

First, download pwin2lin.pl on Linux from https://code.google.com/p/pwin2lin/

Next, install PuTTY on Linux from http://pkgs.repoforge.org/putty/

Export Window’s registry containing PuTTY sessions.

E:\Linux>dir /b
database
deinstall
examples
grid
OEL6.3
ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip
oracleasmlib-2.0.4-1.el6.x86_64.rpm
p10404530_112030_Linux-x86-64_1of7.zip
p10404530_112030_Linux-x86-64_2of7.zip
p10404530_112030_Linux-x86-64_3of7.zip
p10404530_112030_Linux-x86-64_6of7.zip
p10404530_112030_Linux-x86-64_7of7.zip
putty-0.62-1.el6.rf.x86_64.rpm
pwin2lin.pl
raccheck.zip

E:\Linux>regedit /e "E:\Linux\putty.reg" "HKEY_CURRENT_USER\Software\SimonTatham\PuTTY"

E:\Linux>dir /b
database
deinstall
examples
grid
OEL6.3
ogg112101_fbo_ggs_Linux_x64_ora11g_64bit.zip
oracleasmlib-2.0.4-1.el6.x86_64.rpm
p10404530_112030_Linux-x86-64_1of7.zip
p10404530_112030_Linux-x86-64_2of7.zip
p10404530_112030_Linux-x86-64_3of7.zip
p10404530_112030_Linux-x86-64_6of7.zip
p10404530_112030_Linux-x86-64_7of7.zip
putty-0.62-1.el6.rf.x86_64.rpm
putty.reg
pwin2lin.pl
raccheck.zip

E:\Linux>

Import to Linux

[oracle@rac01 ~]$ cp /media/sf_Linux/putty.reg .
[oracle@rac01 ~]$ ll putty.reg
-rwxr-x--- 1 oracle dba 15376 Jun  6 21:05 putty.reg
[oracle@rac01 ~]$ ./pwin2lin.pl ./putty.reg ~/.putty
mkdir /home/oracle/.putty
mkdir /home/oracle/.putty/sessions
[oracle@rac01 ~]$ cd .putty/sessions/
[oracle@rac01 sessions]$ ll
total 8
-rw-r--r-- 1 oracle dba 4257 Jun  6 21:06 rac01
[oracle@rac01 sessions]$h

PuTTY

About these ads

4 Comments »

  1. Nice job Michael.

    Comment by greg — June 9, 2013 @ 7:24 pm | Reply

  2. thanx a lot !

    Comment by stas — September 17, 2013 @ 9:22 am | Reply

  3. Firstly, Thanks for the effort.

    I get this error when I UTF-16LE:Partial character at ./pwin2lin.pl line 64.
    UTF-16LE:Partial character at ./pwin2lin.pl line 64.

    Would you happen to know how I could get past the error ?

    Comment by Ravi — March 12, 2014 @ 10:29 pm | Reply

    • Thanks for the visit. May I suggest posting your question and the code site and may be the developer will have a solution for you.

      Comment by mdinh — March 25, 2014 @ 4:20 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Rubric Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 272 other followers

%d bloggers like this: