GNOME Bugzilla – Bug 373579
sftp remote access with libpam-krb5
Last modified: 2018-08-17 13:51:16 UTC
[ forwarded from http://bugs.debian.org/379106 ] When trying to use nautilus's sftp remote access method to access my ssh login server nothing happens for ca 30sec, no password request box, nothing, and then it fails with the error message: Nautilus cannot display "sftp://www.strul.nu/tmp". Please select another viewer and try again. Removing keys from $HOME/.ssh/known_hosts on originator gets a popup-window asking for confirmation of unknown host, as expected, but still no password box. When selecting 'PreferredAuthentications password' in $HOME/.ssh/known_hosts it all of a sudden works, in that I now get a password request box. The problem with this is that I can't login with this authentication method, since I need to authenticate to pam. However, this leads to the speculation that the remote access method fails to recognize the password prompt my system shows when using libpam-krb5. pam version: Password for tobbe@STRUL.NU: normal password version: tobbe@www.strul.nu's password: This prompt is set by libpam-krb5, and is not configurable, but even if it were, I feel that the fault lies with nautilus (or whatever library/helper/whatever) it is using. Or am I missing something here?
2.16 version built with Kerberos support doesn't help.
Created attachment 83225 [details] [review] Attempt to fix I don't have a Kerberos setup to check, but this patch should do the trick. I'll ask confirmation from the reporter.
Created attachment 83635 [details] [review] Support prompts from pam_krb5 Looks like the pam_krb5 prompt has changed again in the meantime. I've got confirmation from the reporter that this new patch fixes the issue.
gnome-vfs got deprecated in 2008. gnome-vfs is not under active development anymore and had its last code changes in 2011. Its codebase has been archived: https://gitlab.gnome.org/Archive/gnome-vfs/commits/master gio (in glib) and gvfs are its successors. See https://developer.gnome.org/gio/stable/ch33.html and https://people.gnome.org/~gicmo/gio-migration-guide/ for porting info. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of glib/gio/gvfs. Thanks!