Hi, Thanks For Reply, i tried by setting session.setConfig("StrictHostKeyChecking", "yes"); i got error : reject HostKey: xxx.xx.xx.xxxx i tried by setting session.setConfig("StrictHostKeyChecking", "ask"); i got the error : UnknownHostKey: xxx.xx.xx.xxx. RSA key fingerprint is 97:f3:7e:01:51:ea:86:18:6b:be:18:d8:f7:8a:ee:58 how can i give the known_hosts file as input? what is hostkey ? where i will find that? Thanks in advance