Displaying 20 results from an estimated 33 matches for "ssh_connect_direct".
2017 Jan 05
2
proposed change to ssh_connect_direct()
if the remote hostname has multiple ip addresses, ssh_connect_direct
will currently loop and try each address in sequence until one works.
I'm interested in making ssh tries each address concurrently and
return success on the first one that connects. in the land of host
certs and ssh bastions, this can be incredibly effective.
are there any objects to me worki...
2017 Jan 12
3
proposed change to ssh_connect_direct()
On Sat, Jan 7, 2017 at 2:30 PM, Peter Moody <mindrot at hda3.com> wrote:
> so I spent a bit of time looking at this and it seems like the only
> way to go, at least if I want to keep it in ssh_connect_direct(), is
> to use pthreads. further, it seems like getting that accepted is
> something of a long shot:
Sorry, pthreads is a non-starter.
I would have thought that using non-blocking connect (ie set
O_NONBLOCK on the fds, initiate the connections then select on the set
until one succeeds) woul...
2024 Apr 22
0
OpenSSH 9.6 client is stuck
...:
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug2: resolve_canonicalize: hostname 10.0.0.6 is address
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 10.0.0.6 [10.0.0.6] port 1022.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 60000 ms remain after connect
Client side non0-working:
debug1: Reading co...
2014 Jul 16
1
ssh - Connection closed by UNKNOWN
...nect(const char *host, u_short port,
/* Set the connection file descriptors. */
packet_set_connection(sock, sock);
+ debug("Connected to %.200s [%.100s] port %d.",
+ host, get_remote_ipaddr(), get_remote_port());
return 0;
}
@@ -493,6 +496,8 @@ ssh_connect_direct(const char *host, struct addrinfo *aitop
/* Set the connection. */
packet_set_connection(sock, sock);
+ debug("Connected to %.200s [%.100s] port %d.",
+ host, get_remote_ipaddr(), get_remote_port());
return 0;
}
2014 Oct 06
3
[Bug 2286] New: Port ignored when re-reading config after canonicalization
...Status: NEW
Severity: minor
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: pcl at pclewis.com
Created attachment 2482
--> https://bugzilla.mindrot.org/attachment.cgi?id=2482&action=edit
Patch to make ssh_connect_direct use port parameter.
To reproduce:
--
# ~/.ssh/config
CanonicalizeHostname yes
CanonicalDomains mynet.local
Host *.mynet.local
Port 99
--
$ ssh -vvv somedomain
...
debug1: Canonicalized hostname "somedomain" => "somedomain.mynet.local"
debug1: Hostname has changed; re-readin...
2015 Nov 19
2
[Bug 2500] New: ConnectionAttempts=0 causes ssh to output uninitialised data on stdout
...ndrot.org
Reporter: dvw at phas.ubc.ca
Using ssh with ConnectionAttempts set to zero results in the contents
of uninitialised memory being sent to stdout. For example:
$ ssh -o ConnectionAttempts=0 somehost
ssh: connect to host somehost port \200\335q\002\374\177: Success
Cause:
When ssh_connect_direct() is passed connection_attempts=0, the
strport[] buffer is never initialised, since the whole attempt loop is
skipped. Its contents are later output in the error message after the
skipped loop (sshconnect.c:485).
--
You are receiving this mail because:
You are watching the assignee of the bug.
2017 Jun 06
10
[Bug 2727] New: ssh_dispatch_run_fatal: Connection to 127.0.0.1 port 8002: message authentication code incorrect
https://bugzilla.mindrot.org/show_bug.cgi?id=2727
Bug ID: 2727
Summary: ssh_dispatch_run_fatal: Connection to 127.0.0.1 port
8002: message authentication code incorrect
Product: Portable OpenSSH
Version: 7.5p1
Hardware: ix86
OS: Linux
Status: NEW
Severity: major
Priority: P5
2016 Aug 02
2
Configure option '--with-ssh1' breaks openssh-7.3p1
...l/sbin/sshd -p 222 -f \n
DESTDIR/usr/local/etc/sshd_config
ssh:
./ssh -vvv -p 222 -F DESTDIR/usr/local/etc/ssh_config host102
OpenSSH_7.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data DESTDIR/usr/local/etc/ssh_config
debug2: resolving "host102" port 222
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to host102 [192.168.2.102] port 222.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
...
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.3
ssh_exchange_...
2024 Jan 10
1
[Bug 3653] New: ConnectTimeout causes issue when connecting to an host via tsocks
...ticator provider $SSH_SK_PROVIDER did not resolve;
disabling
debug1: auto-mux: Trying existing master at
'/home/ago/.ssh/socket-root at 10.10.0.2:22'
debug1: Control socket "/home/ago/.ssh/socket-root at 10.10.0.2:22" does
not exist
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 10.10.0.2 [10.10.0.2] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 30000 ms remain after connect
debug1: identity file /home/ago/.ssh/id_rsa t...
2016 Sep 21
2
Where to look next?
...plete debug output (obfuscated to remove confidential data):
[root at client ~]# sftp -vvvv -oport=32 SOMEUSER at some.server.we.have
OpenSSH_7.2p2, OpenSSL 1.0.2h 3 May 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "some.server.we.have" port 32
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to some.server.we.have [1.2.3.4] port 32.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: ke...
2016 Sep 07
2
Question regarding Host keys.
Hi,
I'm having a problem when I add "HostKeyAlgorithms +ssh-dss" to the
ssh_config file the host key will always negotiate to a wrong one. In my
case it will negotiate to "ecdsa-sha2-nistp256". The client was already
configured with the servers rsa public key, before the change I added to
the ssh_config file I could see from the debug that server and client will
negotiate
2020 May 21
9
[Bug 3168] New: libssh.a(utf8.o): undefined reference to symbol 'strcasestr@@GLIBC_2.17'
https://bugzilla.mindrot.org/show_bug.cgi?id=3168
Bug ID: 3168
Summary: libssh.a(utf8.o): undefined reference to symbol
'strcasestr@@GLIBC_2.17'
Product: Portable OpenSSH
Version: 8.2p1
Hardware: ARM64
OS: Linux
Status: NEW
Severity: critical
Priority: P5
2016 Aug 17
4
[Portable OpenSSH] hang up during login after OpenSSH 7.3 upgrade
...pplying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: auto-mux: Trying existing master
debug1: Control socket "/home/mrkiko/.ssh/controlmasters/ffcb7b290d3be704cb5460c2430449dc7c74f50c" does not exist
debug2: resolving "10.196.37.5" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.196.37.5 [10.196.37.5] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/mrkiko/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mrkiko/.ssh/i...
2018 Mar 06
2
Failed connections 7.6 to 5.2
...tions for *
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug3: kex names ok: [diffie-hellman-group1-sha1]
debug1: auto-mux: Trying existing master
debug1: Control socket "/tmp/ssh-root at idracname:22" does not exist
debug2: resolving "idracname" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to idracname [(IP address)] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file...
2016 Sep 21
3
Where to look next?
...for your input.
[root at client ~]# sftp -vvv -oKEXAlgorithms=diffie-hellman-group14-sha1 -oport=32 SOMEUSER at IBM.SFG.SFTP.server
OpenSSH_7.2p2, OpenSSL 1.0.2h 3 May 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "IBM.SFG.SFTP.server" port 32
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to IBM.SFG.SFTP.server [1.2.3.4] port 32.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: ke...
2020 Sep 16
2
ssh-ed25519 and ecdsa-sha2-nistp256 host keys
Hello.
I am running OpenSSH 7.9p1 on my client and server. ssh-keyscan shows
the server has ssh-rsa, ssh-ed25519, and ecdsa-sha2-nistp256 host
keys. My /etc/ssh/ssh_known_hosts file contains the server's
ssh-ed25519 host key. When I try to SSH to the server I get this
error:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
2020 Sep 16
2
ssh-ed25519 and ecdsa-sha2-nistp256 host keys
...019
debug1: Reading configuration data /home/ryantm/.ssh/config
debug1: /home/ryantm/.ssh/config line 4: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 13: Applying options for *
debug2: resolving "{REDACTED}" port 22
debug2: ssh_connect_direct
debug1: Connecting to {REDACTED} [{REDACTED}] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: fd 3 clearing O_NONBLOCK
debug1: Connection established.
debug3: timeout: 982 ms remain after connect
debug1: identity file /home/ryantm/.ssh/id_ed25519 type 3
debug1: identity file /home/ryantm/.ssh/id_e...
2016 Nov 08
4
one host only: ssh_dispatch_run_fatal
...ssh to 2x (a solaris <openindian> host).
gv harry> ssh -vv 2x
OpenSSH_7.3p1-hpn14v11, OpenSSL 1.0.2j 26 Sep 2016
debug1: Reading configuration data /etc/ssh/ssh_config
Pseudo-terminal will not be allocated because stdin is not a terminal.
debug2: resolving "2x" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 2x [192.168.1.42] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/harry/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/harry/.ssh/id_rsa-cert...
2016 Aug 03
2
Configure option '--with-ssh1' breaks openssh-7.3p1
...h-7.3p1/DESTDIR/usr/local/bin/ssh -vvv -p 222 -F /Data/openssh-7.3p1/DESTDIR/usr/local/etc/ssh_config host102
OpenSSH_7.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /Data/openssh-7.3p1/DESTDIR/usr/local/etc/ssh_config
debug2: resolving "host102" port 222
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to host102 [192.168.2.102] port 222.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_loa...
2016 Dec 31
2
Baffling regress/forwarding.sh failure, new in 7.4p1
...py of /bin/ls
FAIL: corrupted copy of /bin/ls
==> /tmp/autopkgtest-virt-lxc.shared.hhquaatj/downtmp/autopkgtest_tmp/user/tree/regress/failed-ssh.log <==
trace: config file: transfer over forwarded channels and check result
debug2: resolving "127.0.0.1" port 3302
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 3302.
debug1: connect to address 127.0.0.1 port 3302: Connection refused
debug1: Trying again...
debug1: Connecting to 127.0.0.1 [127.0.0.1] port 3302.
debug1: connect to address 127.0.0.1 port 3302: Connection refused
debug1:...