Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu System.UnauthorizedAccessException #1186

Closed
Cdriko opened this issue Feb 15, 2013 · 4 comments
Closed

ubuntu System.UnauthorizedAccessException #1186

Cdriko opened this issue Feb 15, 2013 · 4 comments

Comments

@Cdriko
Copy link

Cdriko commented Feb 15, 2013

hello
I compile the last version from the github (ubuntu 12.04)
and try to add a gitorious repository

but fail (sparkleshare crash) :

12:20:14 | Config | Updated option notifications:True
12:20:14 | Auth | Created keypair '/home/cedric/.config/sparkleshare/2013-02-15 12h20.key'
12:20:14 | Auth | Imported key '/home/cedric/.config/sparkleshare/2013-02-15 12h20.key'
12:20:23 | Config | Wrote to '/home/cedric/.config/sparkleshare/config.xml'
12:21:13 | Fetcher | /home/cedric/SparkleShare/.tmp/completementcintre | Fetching folder: ssh://git@gitorious.org/completementcintre/completementcintre.git
12:21:13 | Auth | Fetching host key for gitorious.org
12:21:13 | Cmd | ssh-keyscan -t rsa -p 22 gitorious.org
# gitorious.org SSH-2.0-OpenSSH_5.3
12:21:14 | Auth | Fingerprint matches

Unhandled Exception: System.UnauthorizedAccessException: Access to the path "/home/cedric/.ssh/known_hosts" is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.IO.File.Create (System.String path, Int32 bufferSize) [0x00000] in <filename unknown>:0 
  at System.IO.File.Create (System.String path) [0x00000] in <filename unknown>:0 
  at SparkleLib.SparkleFetcherBase.AcceptHostKey (System.String host_key, Boolean warn) [0x00000] in <filename unknown>:0 
  at SparkleLib.SparkleFetcherBase.Start () [0x00000] in <filename unknown>:0 
  at SparkleShare.SparkleControllerBase.StartFetcher (System.String address, System.String required_fingerprint, System.String remote_path, System.String announcements_url, Boolean fetch_prior_history) [0x00000] in <filename unknown>:0 
  at SparkleShare.SparkleSetupController+<AddPageCompleted>c__AnonStorey2.<>m__3F () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path "/home/cedric/.ssh/known_hosts" is denied.
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
  at System.IO.File.Create (System.String path, Int32 bufferSize) [0x00000] in <filename unknown>:0 
  at System.IO.File.Create (System.String path) [0x00000] in <filename unknown>:0 
  at SparkleLib.SparkleFetcherBase.AcceptHostKey (System.String host_key, Boolean warn) [0x00000] in <filename unknown>:0 
  at SparkleLib.SparkleFetcherBase.Start () [0x00000] in <filename unknown>:0 
  at SparkleShare.SparkleControllerBase.StartFetcher (System.String address, System.String required_fingerprint, System.String remote_path, System.String announcements_url, Boolean fetch_prior_history) [0x00000] in <filename unknown>:0 
  at SparkleShare.SparkleSetupController+<AddPageCompleted>c__AnonStorey2.<>m__3F () [0x00000] in <filename unknown>:0 
  at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0 

I tryed to run

sudo mkdir ~/.ssh/know_hosts
sudo chmod a+rwx ~/.ssh/know_hosts/

with the same result
any ideas ?

@hbons
Copy link
Owner

hbons commented Feb 15, 2013

known_hosts is a file that keeps a list of known hosts and their keys, not a directory. did you change the default permissions of the ~/.ssh?

@Cdriko
Copy link
Author

Cdriko commented Feb 15, 2013

ok

sudo rm -r ~/.ssh/know_hosts/
sudo chmod a+rwx ~/.ssh

and now it's working well
thanks

@Cdriko Cdriko closed this as completed Feb 15, 2013
@hbons
Copy link
Owner

hbons commented Feb 15, 2013

so did you modify the permissions of that folder before, or was it the default in Ubuntu?

@Cdriko
Copy link
Author

Cdriko commented Feb 15, 2013

I saw that I create this folder in sudo (long time ago)
with
sudo mkdir ~/.ssh
maybe this is the origin of the problem
sorry ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants