{"action":"created","issue":{"url":"https://api.github.com/repos/duplicati/duplicati/issues/1800","repository_url":"https://api.github.com/repos/duplicati/duplicati","labels_url":"https://api.github.com/repos/duplicati/duplicati/issues/1800/labels{/name}","comments_url":"https://api.github.com/repos/duplicati/duplicati/issues/1800/comments","events_url":"https://api.github.com/repos/duplicati/duplicati/issues/1800/events","html_url":"https://github.com/duplicati/duplicati/issues/1800","id":159509460,"number":1800,"title":"SSH clients is not handling connections well","user":{"login":"mnaiman","id":2264442,"avatar_url":"https://avatars.githubusercontent.com/u/2264442?v=3","gravatar_id":"","url":"https://api.github.com/users/mnaiman","html_url":"https://github.com/mnaiman","followers_url":"https://api.github.com/users/mnaiman/followers","following_url":"https://api.github.com/users/mnaiman/following{/other_user}","gists_url":"https://api.github.com/users/mnaiman/gists{/gist_id}","starred_url":"https://api.github.com/users/mnaiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnaiman/subscriptions","organizations_url":"https://api.github.com/users/mnaiman/orgs","repos_url":"https://api.github.com/users/mnaiman/repos","events_url":"https://api.github.com/users/mnaiman/events{/privacy}","received_events_url":"https://api.github.com/users/mnaiman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/duplicati/duplicati/labels/bug","name":"bug","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-06-09T21:12:59Z","updated_at":"2016-08-12T21:24:27Z","closed_at":"2016-08-12T21:24:26Z","body":"From log of my SFTP server can be seen how number of sessions is increasing with each file. At the end there are hundreds of them.\r\n\r\n```\r\nACCEPT|09.06.2016 22:26:44|There are now 3 active connections\r\nACCEPT|09.06.2016 22:26:44|There are now 4 active connections\r\nACCEPT|09.06.2016 22:26:44|Client is attempting none authentication\r\nACCEPT|09.06.2016 22:26:44|Client is attempting password authentication\r\nACCEPT|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *Verifying password for username.*\r\nUSER|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *USER username*\r\nUSER|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *CONNECT username*\r\nMDTM|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/*\r\nMDTM|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/*\r\nCWD|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *CWD /backup/Backup_Name/*\r\nSTOR|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] WROTE: *250 \"/Backup_Name/\" CWD command successful.*\r\nMDTM|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/*\r\nCWD|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *CWD /backup/Backup_Name/*\r\nSTOR|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] WROTE: *250 \"/Backup_Name/\" CWD command successful.*\r\nLIST|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *150 LIST /backup/Backup_Name/*\r\nLIST|09.06.2016 22:26:44|[SFTP:2406720_0:username:IP_ADDRESS] READ: *226 LIST /backup/Backup_Name/*\r\nACCEPT|09.06.2016 22:26:47|[SFTP:lookup:55556][2406721] Accepting connection from: IP_ADDRESS:56371\r\nACCEPT|09.06.2016 22:26:47|There are now 5 active connections\r\nACCEPT|09.06.2016 22:26:47|There are now 6 active connections\r\nACCEPT|09.06.2016 22:26:47|There are now 5 active connections\r\nACCEPT|09.06.2016 22:26:47|Client is attempting none authentication\r\nACCEPT|09.06.2016 22:26:47|Client is attempting password authentication\r\nACCEPT|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *Verifying password for username.*\r\nUSER|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *USER username*\r\nUSER|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *CONNECT username*\r\nMDTM|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/*\r\nMDTM|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/*\r\nCWD|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *CWD /backup/Backup_Name/*\r\nSTOR|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] WROTE: *250 \"/Backup_Name/\" CWD command successful.*\r\nMDTM|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/Backup_Name-20150427T033000Z.dlist.zip.aes*\r\nMDTM|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *fileExists /backup/Backup_Name/Backup_Name-20150427T033000Z.dlist.zip.aes:true*\r\nRETR|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *RETR START /backup/Backup_Name/Backup_Name-20150427T033000Z.dlist.zip.aes*\r\nRETR|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *RETR /backup/Backup_Name/Backup_Name-20150427T033000Z.dlist.zip.aes:dyrHS*\r\nRETR|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] WROTE: *150 Opening BINARY mode data connection for /backup/Backup_Name/Backup_Name-20150427T033000Z.dlist.zip.aes (2205 bytes). (\"/backup/Backup_Name/Backup_Name-20150427T033000Z.dlist.zip.aes\") R E T R*\r\nRETR|09.06.2016 22:26:47|226-Download File Size:2205 bytes @ 2K/sec.\r\nRETR|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] WROTE: *226 Transfer complete. MD5=36e2bdc8f62716841fa41f28a9c4cfdf (\"/backup/Backup_Name/Backup_Name-20150427T033000Z.dlist.zip.aes\") RETR*\r\nRETR|09.06.2016 22:26:47|[2406721:username:IP_ADDRESS] WROTE: *Adding Backup_Name-20150427T033000Z.dlist.zip.aes to event tracking.*\r\nRETR|09.06.2016 22:26:47|[SFTP:2406721_0:username:IP_ADDRESS] READ: *RETR END   /backup/Backup_Name/Backup_Name-20150427T033000Z.dlist.zip.aes:dyrHS*\r\nACCEPT|09.06.2016 22:26:48|[SFTP:lookup:55556][2406722] Accepting connection from: IP_ADDRESS:56372\r\nACCEPT|09.06.2016 22:26:48|There are now 6 active connections\r\nACCEPT|09.06.2016 22:26:48|There are now 7 active connections\r\nACCEPT|09.06.2016 22:26:48|There are now 6 active connections\r\nACCEPT|09.06.2016 22:26:48|Client is attempting none authentication\r\nACCEPT|09.06.2016 22:26:48|Client is attempting password authentication\r\nACCEPT|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *Verifying password for username.*\r\nUSER|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *USER username*\r\nUSER|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *CONNECT username*\r\nMDTM|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/*\r\nMDTM|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/*\r\nCWD|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *CWD /backup/Backup_Name/*\r\nSTOR|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] WROTE: *250 \"/Backup_Name/\" CWD command successful.*\r\nMDTM|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/Backup_Name-20150428T033000Z.dlist.zip.aes*\r\nMDTM|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *fileExists /backup/Backup_Name/Backup_Name-20150428T033000Z.dlist.zip.aes:true*\r\nRETR|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *RETR START /backup/Backup_Name/Backup_Name-20150428T033000Z.dlist.zip.aes*\r\nRETR|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *RETR /backup/Backup_Name/Backup_Name-20150428T033000Z.dlist.zip.aes:CtE6M*\r\nRETR|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] WROTE: *150 Opening BINARY mode data connection for /backup/Backup_Name/Backup_Name-20150428T033000Z.dlist.zip.aes (2205 bytes). (\"/backup/Backup_Name/Backup_Name-20150428T033000Z.dlist.zip.aes\") R E T R*\r\nRETR|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] READ: *RETR END   /backup/Backup_Name/Backup_Name-20150428T033000Z.dlist.zip.aes:CtE6M*\r\nRETR|09.06.2016 22:26:48|226-Download File Size:2205 bytes @ 2K/sec.\r\nRETR|09.06.2016 22:26:48|[SFTP:2406722_0:username:IP_ADDRESS] WROTE: *226 Transfer complete. MD5=91c9abb61dc3815ace79411b5a75ec3f (\"/backup/Backup_Name/Backup_Name-20150428T033000Z.dlist.zip.aes\") RETR*\r\nRETR|09.06.2016 22:26:48|[2406722:username:IP_ADDRESS] WROTE: *Adding Backup_Name-20150428T033000Z.dlist.zip.aes to event tracking.*\r\nACCEPT|09.06.2016 22:26:48|[SFTP:lookup:55556][2406723] Accepting connection from: IP_ADDRESS:56373\r\nACCEPT|09.06.2016 22:26:48|There are now 7 active connections\r\nACCEPT|09.06.2016 22:26:48|There are now 8 active connections\r\nACCEPT|09.06.2016 22:26:48|There are now 7 active connections\r\nACCEPT|09.06.2016 22:26:48|Client is attempting none authentication\r\nACCEPT|09.06.2016 22:26:48|Client is attempting password authentication\r\nACCEPT|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *Verifying password for username.*\r\nUSER|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *USER username*\r\nUSER|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *CONNECT username*\r\nMDTM|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/*\r\nMDTM|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/*\r\nCWD|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *CWD /backup/Backup_Name/*\r\nSTOR|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] WROTE: *250 \"/Backup_Name/\" CWD command successful.*\r\nMDTM|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/Backup_Name-20150429T033000Z.dlist.zip.aes*\r\nMDTM|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *fileExists /backup/Backup_Name/Backup_Name-20150429T033000Z.dlist.zip.aes:true*\r\nRETR|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *RETR START /backup/Backup_Name/Backup_Name-20150429T033000Z.dlist.zip.aes*\r\nRETR|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *RETR /backup/Backup_Name/Backup_Name-20150429T033000Z.dlist.zip.aes:Gb5K0*\r\nRETR|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] WROTE: *150 Opening BINARY mode data connection for /backup/Backup_Name/Backup_Name-20150429T033000Z.dlist.zip.aes (2205 bytes). (\"/backup/Backup_Name/Backup_Name-20150429T033000Z.dlist.zip.aes\") R E T R*\r\nRETR|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] READ: *RETR END   /backup/Backup_Name/Backup_Name-20150429T033000Z.dlist.zip.aes:Gb5K0*\r\nRETR|09.06.2016 22:26:48|226-Download File Size:2205 bytes @ 2K/sec.\r\nRETR|09.06.2016 22:26:48|[SFTP:2406723_0:username:IP_ADDRESS] WROTE: *226 Transfer complete. MD5=729cef272df62a41d9739f3e570540f7 (\"/backup/Backup_Name/Backup_Name-20150429T033000Z.dlist.zip.aes\") RETR*\r\nRETR|09.06.2016 22:26:48|[2406723:username:IP_ADDRESS] WROTE: *Adding Backup_Name-20150429T033000Z.dlist.zip.aes to event tracking.*\r\nACCEPT|09.06.2016 22:26:49|[SFTP:lookup:55556][2406724] Accepting connection from: IP_ADDRESS:56374\r\nACCEPT|09.06.2016 22:26:49|There are now 8 active connections\r\nACCEPT|09.06.2016 22:26:49|There are now 9 active connections\r\nACCEPT|09.06.2016 22:26:49|There are now 8 active connections\r\nACCEPT|09.06.2016 22:26:49|Client is attempting none authentication\r\nACCEPT|09.06.2016 22:26:49|Client is attempting password authentication\r\nACCEPT|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *Verifying password for username.*\r\nUSER|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *USER username*\r\nUSER|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *CONNECT username*\r\nMDTM|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/*\r\nMDTM|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/*\r\nCWD|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *CWD /backup/Backup_Name/*\r\nSTOR|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] WROTE: *250 \"/Backup_Name/\" CWD command successful.*\r\nMDTM|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/Backup_Name-20150430T033000Z.dlist.zip.aes*\r\nMDTM|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *fileExists /backup/Backup_Name/Backup_Name-20150430T033000Z.dlist.zip.aes:true*\r\nRETR|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *RETR START /backup/Backup_Name/Backup_Name-20150430T033000Z.dlist.zip.aes*\r\nRETR|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *RETR /backup/Backup_Name/Backup_Name-20150430T033000Z.dlist.zip.aes:9jxvm*\r\nRETR|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] WROTE: *150 Opening BINARY mode data connection for /backup/Backup_Name/Backup_Name-20150430T033000Z.dlist.zip.aes (2205 bytes). (\"/backup/Backup_Name/Backup_Name-20150430T033000Z.dlist.zip.aes\") R E T R*\r\nRETR|09.06.2016 22:26:49|226-Download File Size:2205 bytes @ 2K/sec.\r\nRETR|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] WROTE: *226 Transfer complete. MD5=2ad8fc49bee0dfeba79ff61206db5ad3 (\"/backup/Backup_Name/Backup_Name-20150430T033000Z.dlist.zip.aes\") RETR*\r\nRETR|09.06.2016 22:26:49|[2406724:username:IP_ADDRESS] WROTE: *Adding Backup_Name-20150430T033000Z.dlist.zip.aes to event tracking.*\r\nRETR|09.06.2016 22:26:49|[SFTP:2406724_0:username:IP_ADDRESS] READ: *RETR END   /backup/Backup_Name/Backup_Name-20150430T033000Z.dlist.zip.aes:9jxvm*\r\nACCEPT|09.06.2016 22:26:49|[SFTP:lookup:55556][2406725] Accepting connection from: IP_ADDRESS:56375\r\nACCEPT|09.06.2016 22:26:49|There are now 9 active connections\r\nACCEPT|09.06.2016 22:26:49|There are now 10 active connections\r\nACCEPT|09.06.2016 22:26:49|There are now 9 active connections\r\nACCEPT|09.06.2016 22:26:49|Client is attempting none authentication\r\nACCEPT|09.06.2016 22:26:49|Client is attempting password authentication\r\nACCEPT|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *Verifying password for username.*\r\nUSER|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *USER username*\r\nUSER|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *CONNECT username*\r\nMDTM|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/*\r\nMDTM|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/*\r\nCWD|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *CWD /backup/Backup_Name/*\r\nSTOR|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] WROTE: *250 \"/Backup_Name/\" CWD command successful.*\r\nMDTM|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *getFileAttributes /backup/Backup_Name/Backup_Name-20150501T033000Z.dlist.zip.aes*\r\nMDTM|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *fileExists /backup/Backup_Name/Backup_Name-20150501T033000Z.dlist.zip.aes:true*\r\nRETR|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *RETR START /backup/Backup_Name/Backup_Name-20150501T033000Z.dlist.zip.aes*\r\nRETR|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *RETR /backup/Backup_Name/Backup_Name-20150501T033000Z.dlist.zip.aes:nyS5U*\r\nRETR|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] WROTE: *150 Opening BINARY mode data connection for /backup/Backup_Name/Backup_Name-20150501T033000Z.dlist.zip.aes (2205 bytes). (\"/backup/Backup_Name/Backup_Name-20150501T033000Z.dlist.zip.aes\") R E T R*\r\nRETR|09.06.2016 22:26:49|226-Download File Size:2205 bytes @ 2K/sec.\r\nRETR|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] WROTE: *226 Transfer complete. MD5=f12fbb323fb74f2a3b934c4c8cbad904 (\"/backup/Backup_Name/Backup_Name-20150501T033000Z.dlist.zip.aes\") RETR*\r\nRETR|09.06.2016 22:26:49|[2406725:username:IP_ADDRESS] WROTE: *Adding Backup_Name-20150501T033000Z.dlist.zip.aes to event tracking.*\r\nRETR|09.06.2016 22:26:49|[SFTP:2406725_0:username:IP_ADDRESS] READ: *RETR END   /backup/Backup_Name/Backup_Name-20150501T033000Z.dlist.zip.aes:nyS5U*\r\nACCEPT|09.06.2016 22:26:50|[SFTP:lookup:55556][2406726] Accepting connection from: IP_ADDRESS:56376\r\nACCEPT|09.06.2016 22:26:50|There are now 10 active connections\r\nACCEPT|09.06.2016 22:26:50|There are now 11 active connections\r\nACCEPT|09.06.2016 22:26:50|There are now 10 active connections\r\n```"},"comment":{"url":"https://api.github.com/repos/duplicati/duplicati/issues/comments/239563440","html_url":"https://github.com/duplicati/duplicati/issues/1800#issuecomment-239563440","issue_url":"https://api.github.com/repos/duplicati/duplicati/issues/1800","id":239563440,"user":{"login":"mnaiman","id":2264442,"avatar_url":"https://avatars.githubusercontent.com/u/2264442?v=3","gravatar_id":"","url":"https://api.github.com/users/mnaiman","html_url":"https://github.com/mnaiman","followers_url":"https://api.github.com/users/mnaiman/followers","following_url":"https://api.github.com/users/mnaiman/following{/other_user}","gists_url":"https://api.github.com/users/mnaiman/gists{/gist_id}","starred_url":"https://api.github.com/users/mnaiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnaiman/subscriptions","organizations_url":"https://api.github.com/users/mnaiman/orgs","repos_url":"https://api.github.com/users/mnaiman/repos","events_url":"https://api.github.com/users/mnaiman/events{/privacy}","received_events_url":"https://api.github.com/users/mnaiman/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T21:24:26Z","updated_at":"2016-08-12T21:24:26Z","body":"It is working"}}
{"actor":{"display_login":"mnaiman"}}