After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 351392 - Lack of SSH keys in know_hosts causes AccessDenied exception
Lack of SSH keys in know_hosts causes AccessDenied exception
Product: gnome-vfs
Classification: Deprecated
Component: Module: ssh/sftp
Other All
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Reported: 2006-08-15 02:12 UTC by aigarius
Modified: 2006-08-15 15:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14

Description aigarius 2006-08-15 02:12:30 UTC
$ mv .ssh/ .ssh.old/
$ python
>>>import gnomevfs
>>> gnomevfs.get_file_info( "ssh://" )
Traceback (most recent call last):
  • File "<stdin>", line 1 in ?
gnomevfs.AccessDeniedError: Access denied
$ ssh
The authenticity of host ' (' can't be established.
RSA key fingerprint is 6d:29:c0:f3:d0:84:c9:a9:d9:4c:7e:e3:1a:18:a2:e2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ',' (RSA) to the list of known hosts.'s password: *******
[...]$ exit
$ python
>>>import gnomevfs
>>> gnomevfs.get_file_info( "ssh://" )
<gnomevfs.FileInfo 'aigarius'>

There is no way to solve that exception inside the software interface. There must be a way to at least override that or get a better error.

I am developing SBackup - a personal remote backup solution and people complain of this bug very frequently. Those people do not want to go to other pieces of software to get it to work for this server. They want SBackup just to do the right thing and work out of the box.
Comment 1 Christian Neumair 2006-08-15 15:37:37 UTC
Thanks for your bug report!

We're really proud that you're developing an application with GnomeVFS!
Please give feedback for all issues you encounter, esp. bad documentation.

In a C application, using gnome_authentication_manager_init() from libgnomeui before accessing GnomeVFS is enough to make this work as expected. You can use a python wrapper around libgnomeui's authentication manager initialization function and depend on it. Now, your users will be asked for confirmation just like with the traditional CLI.

Note that you can also reimplement all the callbacks without depending on the libgnomeui (ergo bonobo) stack, cf. libgnomeui/gnome-authentication-manager.c.