Can't connect to ssh from one laptop on local network
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2018
    Location
    Melbourne
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't connect to ssh from one laptop on local network

    I have SSH and FTP set up on my fedora machine and users (me) can authenticate with an encryption key. I used to be able to connect using my desktop locally, my laptop locally and also remotely from the laptop but now I can't connect locally from the laptop. When I look at the logs

    Aug 21 10:44:44 localhost.blah sshd[13382]: pam_unix(sshd:session): session opened for user defiantpanda by (uid=0)
    Aug 21 10:44:44 localhost.blah sshd[13382]: Accepted publickey for defiantpanda from 10.1.1.14 port 50436 ssh2: RSA longstringofstuff

    but my laptop just hangs there. It isn't connecting. When I try to sftp it times out and retries endlessly.
    I have restarted the laptop, restarted the fedora machine, restarted the modem. I don't know what else to do from here.

    Any advice appreciated.

    Weirdly enough, when I log back on with my desktop, it says last log on was several minutes ago from 10.1.1.14 (the laptop)... As though it successfully logged on. Wth.
    I changed the IP address the laptop uses thinking maybe the IP got blocked somewhere but that didn't work either.
    Last edited by DefiantPanda; 21st August 2019 at 02:38 AM.

  2. #2
    Join Date
    Aug 2016
    Location
    spring, tx
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't connect to ssh from one laptop on local network

    start with running ssh in debug by passing -vvv

    Code:
    ssh -vvv you_address_here

  3. #3
    Join Date
    Jul 2018
    Location
    Melbourne
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't connect to ssh from one laptop on local network

    OpenSSH_7.9p1, OpenSSL 1.1.1a 20 Nov 2018
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: resolve_canonicalize: hostname 10.1.1.6 is address
    debug2: ssh_connect_direct
    debug1: Connecting to 10.1.1.6 [10.1.1.6] port 22.
    debug1: Connection established.
    debug1: identity file C:/Users/***/Documents/opensshkey type -1
    debug1: identity file C:/Users/***/Documents/opensshkey-cert type -1
    debug1: Local version string SSH-2.0-OpenSSH_7.9
    debug1: Remote protocol version 2.0, remote software version OpenSSH_7.8
    debug1: match: OpenSSH_7.8 pat OpenSSH* compat 0x04000000
    debug2: fd 4 setting O_NONBLOCK
    debug1: Authenticating to 10.1.1.6:22 as '***'
    debug3: hostkeys_foreach: reading file "/c/Users/***/.ssh/known_hosts"
    debug3: record_hostkey: found key type ECDSA in file /c/Users/***/.ssh/known_hosts:1
    debug3: load_hostkeys: loaded 1 keys from 10.1.1.6
    debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh...01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
    debug3: send packet: type 20
    debug1: SSH2_MSG_KEXINIT sent
    debug3: receive packet: type 20
    debug1: SSH2_MSG_KEXINIT received
    debug2: local client KEXINIT proposal
    debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
    debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh...01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
    debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128...cm@openssh.com,aes128-cbc,3des-cbc,aes256-cbc,aes192-cbc
    debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128...cm@openssh.com,aes128-cbc,3des-cbc,aes256-cbc,aes192-cbc
    debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm...28@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm...28@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
    debug2: compression ctos: none,zlib@openssh.com,zlib
    debug2: compression stoc: none,zlib@openssh.com,zlib
    debug2: languages ctos:
    debug2: languages stoc:
    debug2: first_kex_follows 0
    debug2: reserved 0
    debug2: peer server KEXINIT proposal
    debug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
    debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
    debug2: ciphers ctos: aes256-gcm@openssh.com,chacha20-poly...cm@openssh.com,aes128-ctr,aes128-cbc
    debug2: ciphers stoc: aes256-gcm@openssh.com,chacha20-poly...cm@openssh.com,aes128-ctr,aes128-cbc
    debug2: MACs ctos: hmac-sha2-256-etm@openssh.com,hmac-s...28@openssh.com,hmac-sha2-512
    debug2: MACs stoc: hmac-sha2-256-etm@openssh.com,hmac-s...28@openssh.com,hmac-sha2-512
    debug2: compression ctos: none,zlib@openssh.com
    debug2: compression stoc: none,zlib@openssh.com
    debug2: languages ctos:
    debug2: languages stoc:
    debug2: first_kex_follows 0
    debug2: reserved 0
    debug1: kex: algorithm: curve25519-sha256@libssh.org
    debug1: kex: host key algorithm: ecdsa-sha2-nistp256
    debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
    debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
    debug3: send packet: type 30
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug3: receive packet: type 31
    debug1: Server host key: ecdsa-sha2-nistp256 SHA256:***
    debug3: hostkeys_foreach: reading file "/c/Users/***/.ssh/known_hosts"
    debug3: record_hostkey: found key type ECDSA in file /c/Users/***/.ssh/known_hosts:1
    debug3: load_hostkeys: loaded 1 keys from 10.1.1.6
    debug1: Host '10.1.1.6' is known and matches the ECDSA host key.
    debug1: Found key in /c/Users/***/.ssh/known_hosts:1
    debug3: send packet: type 21
    debug2: set_newkeys: mode 1
    debug1: rekey after 134217728 blocks
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug3: receive packet: type 21
    debug1: SSH2_MSG_NEWKEYS received
    debug2: set_newkeys: mode 0
    debug1: rekey after 134217728 blocks
    debug1: Will attempt key: C:/Users/***/Documents/opensshkey explicit
    debug2: pubkey_prepare: done
    debug3: send packet: type 5
    debug3: receive packet: type 7
    debug1: SSH2_MSG_EXT_INFO received
    debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,null>
    debug3: receive packet: type 6
    debug2: service_accept: ssh-userauth
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug3: send packet: type 50
    debug3: receive packet: type 51
    debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
    debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic
    debug3: preferred publickey,keyboard-interactive,password
    debug3: authmethod_lookup publickey
    debug3: remaining preferred: keyboard-interactive,password
    debug3: authmethod_is_enabled publickey
    debug1: Next authentication method: publickey
    debug1: Trying private key: C:/Users/***/Documents/opensshkey
    Enter passphrase for key 'C:/Users/***/Documents/opensshkey':
    debug3: sign_and_send_pubkey: RSA SHA256:***
    debug3: sign_and_send_pubkey: signing using rsa-sha2-512
    debug3: send packet: type 50
    debug2: we sent a publickey packet, wait for reply
    debug3: receive packet: type 52
    debug1: Authentication succeeded (publickey).
    Authenticated to 10.1.1.6 ([10.1.1.6]:22).
    debug1: channel 0: new [client-session]
    debug3: ssh_session2_open: channel_new: 0
    debug2: channel 0: send open
    debug3: send packet: type 90
    debug1: Requesting no-more-sessions@openssh.com
    debug3: send packet: type 80
    debug1: Entering interactive session.
    debug1: pledge: network
    debug3: receive packet: type 80
    debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
    debug3: receive packet: type 4
    debug1: Remote: /home/***/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
    debug3: receive packet: type 91
    debug2: channel_input_open_confirmation: channel 0: callback start
    debug2: fd 4 setting TCP_NODELAY
    debug3: ssh_packet_set_tos: set IP_TOS 0x48
    debug2: client_session2_setup: id 0
    debug2: channel 0: request pty-req confirm 1
    debug3: send packet: type 98
    debug2: channel 0: request shell confirm 1
    debug3: send packet: type 98
    debug2: channel_input_open_confirmation: channel 0: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768

  4. #4
    Join Date
    Sep 2019
    Location
    United Kingdom
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can't connect to ssh from one laptop on local network

    Try to disable these options:

    key options: agent-forwarding port-forwarding pty user-rc x11-forwarding

    Can you provide your sshd_config

Similar Threads

  1. Can't connect local network to internet.
    By halmorris in forum Servers & Networking
    Replies: 4
    Last Post: 16th October 2012, 04:30 PM
  2. Replies: 4
    Last Post: 16th August 2009, 06:05 PM
  3. can connect to wireless router, but no internet or local network
    By HellGuardian in forum Servers & Networking
    Replies: 11
    Last Post: 4th November 2008, 08:29 PM
  4. Use a name instead of IP address to connect from local network
    By cfoland in forum Servers & Networking
    Replies: 14
    Last Post: 21st July 2006, 03:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •