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 have tried to connect by password or by key files and it fails to connect. My laptop sees my Pc since when I switch the config file back and forth it prompts for a password or attempts to use the keyfile. My config looks like this:

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for some commonly used options.  For a comprehensive
# list of available options, their meanings and defaults, please see the
# ssh_config(5) man page.

#Host *

#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no
#   GSSAPITrustDNS no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#    SendEnv LANG LC_*
#    HashKnownHosts yes
#    GSSAPIAuthentication yes
#    GSSAPIDelegateCredentials no

# GSSAPI authentication (added by ssh-krb5 transitional package)
GSSAPIAuthentication yes
GSSAPIKeyExchange yes
AllowUsers pc
PasswordAuthentication no
Subsystem sftp internal-sftp
Match group internal
    ChrootDirectory %h
    ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding yes
PubkeyAuthentication yes
RSAAuthentication yes

sshed to my PC with: ssh pc@192.168.1.67 (Its pvt ip address)

I established a user by: sudo useradd pc -d /home/internal and chmoded the /home/internal directory

I issued the command to for ufw to accept port 22

I verified that my PC was connecting to openssh with ssh -v localhost

I ran ssh -v with start to verify the config was okay.

share|improve this question
    
The pc user needs to own /home/internal. root needs to own /home. Did you create a password for the user or create an ssh key? You have password authentication set to no. –  penner Apr 30 '13 at 1:08
    
If it prompts for a password, you know your key isn't working. –  penner Apr 30 '13 at 1:34
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.