Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know how I can access the following as root: Places>Connect to server

This is to connect to a server that needs a public key that I only have as root


share|improve this question
executing sudo nautilus lets me browse local files as root. not sure if it works in the case you're referring to – RobotHumans May 7 '11 at 13:34

If I understand you correctly, go to Places -> Connect to Server -> Select:

  • Service type: select SSH
  • Server: Type in your servers ip address here, such as 123.456.789.123
  • Port: Leave blank
  • Folder: Leave blank
  • User Name: root

Press connect

Now you should get prompted for a password for your RSA/DSA keys. Key in your password and voila! It connects!

share|improve this answer
Have you tried it? As far as I know, on Debian Ubuntu you cannot connect via ssh as root. – Immanuel Weihnacht Dec 4 '12 at 17:47
Yes I use it every day. – root-11 Dec 4 '12 at 21:23
@natema: you might have set PermitRootLogin to no in your server sshd config file. Check this out – user01 Feb 28 '14 at 8:21
connecting as root seems a little risky, and not really a good practice. Is there no way to get a password prompt when you want to open as particular file as root? – chrismarx Mar 13 '14 at 14:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.