Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I added users to my server, but when I try to login, it prompts me for a password, which I never put in. Do any of you know what the default password is? Also, I would like to setup SFTP, so can anyone help me with that?

share|improve this question

1 Answer 1

You cannot use SSH to login to a User Account that does not exist on the host machine or that does not yet have a password

To use OpenSSH, your host machine running the ssh service must have at least one <username> with a corresponding password. If the <username> on the host machine that you would like to use does not yet have a password, on the host machine do:

sudo passwd username

Now you should be able to login to your host machine using ssh from a client machine.

  • Note that SFTP is included in the ssh daemon, so in a terminal on the client machine:

    sftp user@ip.address
    

Alternatively, if you simply want to use sftp to visually access the host machine's filesystem (e.g., using Nautilus)

  1. Open Nautilus on the client machine
  2. Select File > Connect to Server
  3. Type: SSH
  4. Server: Enter your host machine's IP address
  5. Port: port number specified in host machine's sshd_config file
  6. User name: username
  7. Password: password

enter image description here

share|improve this answer
    
Do I need to be in an certain directory for this command? I'm a Linux newbie. –  JWENG8 Nov 8 '13 at 2:42
    
No, you can execute it from any directory. :) –  Just1602 Nov 8 '13 at 4:04
    
When I do the command it gives me a no user name error. Do I need to create an account for SSH? –  JWENG8 Nov 9 '13 at 3:44
    
You need to replace username by the username of the user you add on the server and you need to execute this command on the server. –  Just1602 Nov 10 '13 at 1:14

Your Answer

 
discard

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.