Export putty settings (or sessions) from a linux to another linux

5

1

I've been searching the internet for an answer for this question but I found only answers for exporting from a windows to another (using regedit). Is it possible to export putty sessions from a linux to another and how to do that? Thank you!

pr.nizar

Posted 2013-05-04T23:14:45.487

Reputation: 265

Answers

9

You can find the sessions under (where ~ represents the user's home directory):

~/.putty/sessions/

Each session is a file in that directory, so you can copy the whole directory, or just individual sessions.

EDIT: Private key files, if used, are not stored within the session files, so they will also need to be copied from their original location.

depquid

Posted 2013-05-04T23:14:45.487

Reputation: 335

Helped us fix Jenkins not being able to use SCP, whereas root could. – Buffalo – 2015-09-10T11:55:13.360

Thank you very much for the prompt and clear answer! The server I'm using is actually down now so I can not test this right now but will it grant me the same access I had in my other linux installation? – pr.nizar – 2013-05-05T01:10:09.870

1I'm not sure what you mean by "same access". When you copy the sessions from one computer to another, the sessions on the new computer will have all of the same settings as on the old one. I've added a note about coping private keys. – depquid – 2013-05-05T21:30:17.893