{"comment":{"url":"https://api.github.com/repos/ruchidesai/redi/comments/10216647","html_url":"https://github.com/ruchidesai/redi/commit/9e71504e81205c5ae3a0e76f0f0de039f23e01c0#commitcomment-10216647","id":10216647,"user":{"login":"ruchidesai","id":6810452,"avatar_url":"https://avatars.githubusercontent.com/u/6810452?v=3","gravatar_id":"","url":"https://api.github.com/users/ruchidesai","html_url":"https://github.com/ruchidesai","followers_url":"https://api.github.com/users/ruchidesai/followers","following_url":"https://api.github.com/users/ruchidesai/following{/other_user}","gists_url":"https://api.github.com/users/ruchidesai/gists{/gist_id}","starred_url":"https://api.github.com/users/ruchidesai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruchidesai/subscriptions","organizations_url":"https://api.github.com/users/ruchidesai/orgs","repos_url":"https://api.github.com/users/ruchidesai/repos","events_url":"https://api.github.com/users/ruchidesai/events{/privacy}","received_events_url":"https://api.github.com/users/ruchidesai/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"9e71504e81205c5ae3a0e76f0f0de039f23e01c0","created_at":"2015-03-16T15:32:43Z","updated_at":"2015-03-16T15:32:43Z","body":"The current fix works as follows:\r\n\r\nIf password is not set in settings.ini:\r\n    - If private key file is not set in settings.ini:\r\n        Error regarding private key file being invalid is raised both on screen and in log file\r\n    - If private key file is set in settings.ini but it does not exist:\r\n        IOError regarding missing private key file is raised both on screen and in log file\r\n\r\nHowever, if password is set in settings.ini and is incorrect, then irrespective of the private key file, the following error is thrown both on screen and in log file:\r\n\r\n_INFO - paramiko.transport - Authentication continues..._\r\n_INFO - redi.utils.GetEmrData - User <username> connected to sftp server <sftpserver> _\r\n_INFO - paramiko.transport - Disconnect (code 2): received packet inappropriate for current authentication state_\r\n_ERROR - redi.utils.GetEmrData - Unable to open channel_\r\n.\r\n.\r\n.\r\n_SSHException: Unable to open channel_\r\n\r\nMore details are logged regarding the same in the log file than on the screen."}}