Plink and DB2

08 October,2011 by Tom Collins

Connecting from Windows to Linux is possible with plink.exe

Plink is part of the PuTTY toolkit. Plink is  the command line interface to the PuTTY backend.

One of the interesting methods  to apply is connecting to DB2 on Linux. In the example below the plink command  is : a connection  made to Linux and a shell script is executed on the server. With the output onto “data.out”


C:\plink.exe -ssh -2 -P 22 [email protected] -pw dbuserpw su – dbuser2 -c  / > data.out

In the next post I’ll outline how to integrate Plink with Powershell – for a DIY DB2 reporting solution

Related Posts

DB2 – How to pscp from the command line

Mysql connect details for Linux using Putty

Author: Rambler(


Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment on Plink and DB2

Comments are moderated, and will not appear until the author has approved them. | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright