On 06/15/2018 09:08 PM, David C. Rankin wrote: > Can someone confirm whether the sftp_kio (used, e.g. in the file-open or > file-save dialog in kate/kwrite to open/save files to a remote server) is > working as of the latest Plasma updates? > > When I attempt to connect to my local server (tried both LAN and WAN > connections), I get the error dialog: > > --------------------------------------------------------------------------- > The host key for this server was not found, but another type of key exists. > An attacker might change the default server key to confuse your client into > thinking the key does not exist. > Please contact your system administrator. > --------------------------------------------------------------------------- > > I have tried saving via the hosts in my QuickList (on the left side of the > file-save dialog) and by manually entering sftp://host/path/to/file and the > error is the same each time. > > I can ssh and sftp from konsole to all the host without any problem. > > If this is confirmed, should this bug be filed with arch or upstream? > OK, This looks like it is an upstream bug, Plasma is now failing to include the username in opening the connection: Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: list directory: QUrl("sftp://nirvana/home/david/tmp") Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: checking cache: info.username = "" , info.url = "sftp://nirvana" Jun 15 21:57:06 seidr kiod5[3633]: org.kde.kio.kpasswdserver: User = "" , WindowId = 79692133 Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: Creating the SSH session and setting options Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: Trying to connect to the SSH server Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: username= "" , host= "nirvana" , port= 22 Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: Getting the SSH server hash Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: Checking if the SSH server is known Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: Jun 15 21:57:06 seidr kdeinit5[3946]: log_kio_sftp: connected ? false username: old= "" new= "" Forcing a username with sftp://david@nirvana/home/david will connect, but if the host is in your QuickList, an additional '/' is appended, e.g. Jun 15 22:02:56 seidr kdeinit5[4000]: log_kio_sftp: QUrl("file:///tmp/kwrite.wWnYUs") -> QUrl("sftp://nirvana//stylish_policy.txt") , permissions = "-1" , overwrite = QFlags(0x4) , resume = QFlags() Jun 15 22:02:56 seidr kdeinit5[4000]: log_kio_sftp: "/tmp/kwrite.wWnYUs" -> QUrl("sftp://nirvana//stylish_policy.txt") , permissions= -1 , flags QFlags(0x4) Jun 15 22:02:56 seidr kdeinit5[4000]: log_kio_sftp: QUrl("sftp://nirvana//stylish_policy.txt") , permissions = -1 , overwrite = QFlags(0x4) , resume = QFlags() However, including the username to a host not in the QuickList will complete successfully, but with a number of ratty errors, e.g. (to a new host "2pi") Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: "david" @ "2pi" : 0 Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: list directory: QUrl("sftp://david@2pi/") Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: checking cache: info.username = "david" , info.url = "sftp://david@2pi" Jun 15 22:03:58 seidr kiod5[3633]: org.kde.kio.kpasswdserver: User = "david" , WindowId = 0 Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: Creating the SSH session and setting options Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: Trying to connect to the SSH server Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: username= "david" , host= "2pi" , port= 22 Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: Getting the SSH server hash Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: Checking if the SSH server is known Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: Jun 15 22:03:58 seidr kdeinit5[4000]: log_kio_sftp: connected ? false username: old= "david" new= "david" Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: list directory: QUrl("sftp://david@2pi/home") Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: checking cache: info.username = "david" , info.url = "sftp://david@2pi" Jun 15 22:03:59 seidr kiod5[3633]: org.kde.kio.kpasswdserver: User = "david" , WindowId = 0 Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: Creating the SSH session and setting options Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: Trying to connect to the SSH server Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: username= "david" , host= "2pi" , port= 22 Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: Getting the SSH server hash Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: Checking if the SSH server is known Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: Jun 15 22:03:59 seidr kdeinit5[4000]: log_kio_sftp: connected ? false username: old= "david" new= "david" Jun 15 22:04:01 seidr kdeinit5[4000]: log_kio_sftp: list directory: QUrl("sftp://david@2pi/home/david") Jun 15 22:04:01 seidr kdeinit5[4000]: log_kio_sftp: checking cache: info.username = "david" , info.url = "sftp://david@2pi" Jun 15 22:04:01 seidr kiod5[3633]: org.kde.kio.kpasswdserver: User = "david" , WindowId = 0 Jun 15 22:04:02 seidr kdeinit5[4000]: log_kio_sftp: Creating the SSH session and setting options Jun 15 22:04:02 seidr kdeinit5[4000]: log_kio_sftp: Trying to connect to the SSH server Jun 15 22:04:02 seidr kdeinit5[4000]: log_kio_sftp: username= "david" , host= "2pi" , port= 22 Jun 15 22:04:02 seidr kdeinit5[4000]: log_kio_sftp: Getting the SSH server hash Jun 15 22:04:02 seidr kdeinit5[4000]: log_kio_sftp: Checking if the SSH server is known Jun 15 22:04:02 seidr kdeinit5[4000]: log_kio_sftp: Jun 15 22:04:02 seidr kdeinit5[4000]: log_kio_sftp: connected ? false username: old= "david" new= "david" Jun 15 22:04:24 seidr kwrite[3618]: QFile::remove: Empty or null file name Jun 15 22:04:24 seidr kdeinit5[4020]: Qt: Session management error: networkIdsList argument is NULL Jun 15 22:04:24 seidr kdeinit5[4020]: Icon theme "Oxygen" not found. Jun 15 22:04:25 seidr kdeinit5[4020]: Not a JPEG file: starts with 0xff 0xd9 Jun 15 22:04:27 seidr plasmashell[1551]: KActivitiesStats( 0x5559783f3c90 ) ResultModelPrivate::onResultScoreUpdated result added: "/home/david/stylish_priv.txt" score: 0 last: 1529118267 first: 1529118267 Jun 15 22:05:30 seidr kwin_x11[1544]: qt.qpa.xcb: Unhandled client message: "_NET_CURRENT_DESKTOP" Jun 15 22:07:31 seidr kwin_x11[1544]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 19143, resource id: 81788932, major code: 18 (ChangeProperty), minor code: 0 Jun 15 22:07:41 seidr kwin_x11[1544]: qt.qpa.xcb: Unhandled client message: "_NET_CURRENT_DESKTOP" Jun 15 22:08:15 seidr kdeinit5[4000]: log_kio_sftp: Jun 15 22:08:15 seidr kdeinit5[4000]: log_kio_sftp: *** kio_sftp Done I'll file upstream. -- David C. Rankin, J.D.,P.E.