search for: ssh_connect

Displaying 20 results from an estimated 377 matches for "ssh_connect".

2007 Jul 24
1
ssh client does not timeout if the network fails after ssh_connect but before ssh_exchange_identification, even with Alive options set
Hello, I am testing ssh with occasional network disconnection between server and client during these days. I found ssh sometimes hangs if the disconnection happens after the connection is established but before ssh_exchange_identification completes. The ssh configuration files show that both client and server alive options are set. In /etc/ssh/ssh_config: # Send keepalive messages to the server.
2024 Nov 12
0
[PATCH 1/2] Add test to cover multiple server hostkeys with agent
...SH_KEYTYPES ; do + verbose "Addkey type $k" + echo "Hostkey $OBJ/agent-key.${k}" >> $OBJ/sshd_proxy + + ( printf 'localhost-with-alias ' ; + cat $OBJ/agent-key.$k.pub) > $OBJ/known_hosts +done + +opts="-oStrictHostKeyChecking=yes -F $OBJ/ssh_proxy" +SSH_CONNECTION=`${SSH} $opts host 'echo $SSH_CONNECTION'` + +if [ $? -ne 0 ]; then + fail "Hostkeys-prove error. Unable to proceed" +fi +if [ "$SSH_CONNECTION" != "UNKNOWN 65535 UNKNOWN 65535" ]; then + fail "bad SSH_CONNECTION key type $k" +fi + + +read -p &quot...
2000 Nov 14
1
[PATCH] Added option 'RetryDelay'
...@@ options->compression_level = -1; options->port = -1; options->connection_attempts = -1; + options->retry_delay = -1; options->number_of_password_prompts = -1; options->cipher = -1; options->ciphers = NULL; @@ -770,6 +776,8 @@ options->port = 0; /* Filled in ssh_connect. */ if (options->connection_attempts == -1) options->connection_attempts = 4; + if (options->retry_delay == -1) + options->retry_delay = 1; if (options->number_of_password_prompts == -1) options->number_of_password_prompts = 3; /* Selected in ssh_login(). */ diff -u -...
2024 Nov 12
2
[PATCH 0/2] Specify signature algorithm during server hostkeys prove
From: Maxime Rey <maximejeanrey at gmail.com> Hello, I've discovered an issue with sshd when it's configured to use the SSH agent alongside multiple host keys. Specifically, this problem happens during the hostkeys-prove-00 at openssh.com request, when the server attempts to demonstrate ownership of the host keys by calling the agent. The issue occurs because, while processing the
2012 Nov 20
4
Connection info with AuthorizedKeysCommand
I see that support for AuthorizedKeysCommand has been added. The arguments supplied to the command is just the authenticating user. Can we add the SSH connection details (ie. source and destination IPs and ports) as well? This command seems to be the idea way of requiring one set of credentials from inside an organisation (say the user's own authorized_keys file) and another set from outside
2011 May 19
2
unicorn doesn't restart properly after cap deploy (not using Bundler)
...usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin", "MAIL"=>"/var/mail/root", "PWD"=>"/var/www/lookbook/current", "HOME"=>"/root", "SHLVL"=>"2", "LOGNAME"=>"root", "SSH_CONNECTION"=>"24.23.182.32 38170 98.158.22.100 22", "_"=>"/opt/ruby-enterprise-1.8.7-2010.02/bin/unicorn_rails", "RAILS_ENV"=>"production"} AFTER FORK: {"SHELL"=>"/bin/bash", "TERM"=>"xterm", &quot...
2002 May 22
0
[PATCH] connect() timeout
...rward Specifies that a TCP/IP port on the local machine be forwarded over the secure channel, and the application --- openssh-3.2.2p1/ssh.c.ORIG Tue Apr 23 13:09:46 2002 +++ openssh-3.2.2p1/ssh.c Tue May 21 15:40:06 2002 @@ -677,7 +677,7 @@ /* Open a connection to the remote host. */ cerr = ssh_connect(host, &hostaddr, options.port, IPv4or6, - options.connection_attempts, + options.connection_attempts, options.connection_timeout, original_effective_uid != 0 || !options.use_privileged_port, pw, options.proxy_command); --- openssh-3.2.2p1/sshconnect.c.ORIG Tue Mar 5 19:59...
2005 Jun 12
2
%h,%p,%u expansion for ControlPath
This allows me to set 'ControlPath ~/.ssh/sockets/%h.%p.%u' for example. Have I missed a good reason why ssh_connect finds the default port number for itself instead of just having it in options.port (like we do for the the default in options.user)? --- openssh-4.1p1/ssh.c~ 2005-06-12 09:47:18.000000000 +0100 +++ openssh-4.1p1/ssh.c 2005-06-12 09:40:53.000000000 +0100 @@ -604,6 +604,17 @@ again: *p = tolowe...
2000 Oct 30
2
SSH not responding.
...But now I can no longer connect. From Linux, this is the output: pc078:~$ ssh -v 208.240.199.51 SSH Version OpenSSH_2.2.0p1, protocol versions 1.5/2.0. Compiled with SSL (0x0090600f). debug: Reading configuration data /local/hda4/lar/etc/ssh_config debug: Seeding random number generator debug: ssh_connect: getuid 1555 geteuid 1555 anon 1 debug: Connecting to 208.240.199.51 [208.240.199.51] port 22. debug: Connection established. Any Ideas? Thanks, Laramie. (Some of the finer points missing from my e-mail address.)
2001 Jun 17
0
getnameinfo failed
I'm running openssh-2.3.0p1 in linux. scp -P 2222 -v user at 207.224.119.73:openssh-2.3.0p1.tar /tmp/junk gives me Executing: program /usr/local/bin/ssh host 207.224.119.73, user user, command scp -v -f openssh-2.3.0p1.tar ssh_connect: getnameinfo failed I get that 3 times and then it gives up. I've changed ssh_connect as follows: if (getnameinfo(ai->ai_addr,ai->ai_addrlen, ntop, sizeof(ntop), strport,sizeof(strport), NI_NUMERICHOST|NI_NUMERICSERV) != 0) { error("ssh_connect: getnameinfo failed"...
2002 Jan 26
5
[PATCH] Connect timeout
...void long waits. .It Cm DynamicForward Specifies that a TCP/IP port on the local machine be forwarded over the secure channel, and the application --- ssh.c.OK Mon Nov 12 00:52:04 2001 +++ ssh.c Sat Jan 26 21:44:35 2002 @@ -674,7 +674,7 @@ /* Open a connection to the remote host. */ cerr = ssh_connect(host, &hostaddr, options.port, IPv4or6, - options.connection_attempts, + options.connection_attempts, options.connection_timeout, original_effective_uid != 0 || !options.use_privileged_port, pw, options.proxy_command); --- sshconnect.c.OK Wed Oct 10 07:07:45 2001 +++ sshco...
2000 Jan 14
1
forum to discuss problems
...her machine, but does not work the other way around. Here are the details: On the RH 6.0 box, I have problems connectiong to the 6.1 box: ssh -v moni SSH Version OpenSSH-1.2.1, protocol version 1.5. Compiled with SSL (RSAref version). debug: Reading configuration data /etc/ssh/ssh_config debug: ssh_connect: getuid 0 geteuid 0 anon 0 debug: Connecting to wierdlmpc.msci.memphis.edu [141.225.11.87] port 22. debug: Allocated local port 1023. debug: Connection established. ssh_exchange_identification: read: No such file or directory debug: Calling cleanup 0x8054c80(0x0) >From the 6.1 box, I have no pr...
2000 Jun 06
0
connection timeout
...tions->compression_level = -1; options->port = -1; options->connection_attempts = -1; + options->connection_timeout = -1; options->number_of_password_prompts = -1; options->cipher = -1; options->ciphers = NULL; @@ -746,6 +753,8 @@ options->port = 0; /* Filled in ssh_connect. */ if (options->connection_attempts == -1) options->connection_attempts = 4; + if (options->connection_timeout == -1) + options->connection_timeout = 120; if (options->number_of_password_prompts == -1) options->number_of_password_prompts = 3; /* Selected in ss...
2013 Oct 07
4
Feature request: FQDN Host match
Hello! I'm hoping that Gmail won't HTML format this mail so that I'll get flamed :) Anyway, my question relates to ssh_config. The problem I find is that the Host pattern is only applied to the argument given on the command line, as outlined in the man page: "The host is the hostname argument given on the command line (i.e. the name is not converted to a canonicalized host name
2013 Jun 08
4
"Virtual hosts" for ssh
...ke Apache "virtual hosts". This would make it much more viable to host multiple installs of git on the same server, for example. More details: On the remote server, ssh already sets some environment variables: > printenv | grep SSH SSH_CLIENT=192.168.1.18 50945 22 SSH_TTY=/dev/pts/1 SSH_CONNECTION=192.168.1.18 50945 192.168.1.1 22 What about adding another, say SSH_SERVER_HOST=host1 Assuming that /etc/hosts 192.168.1.1 host1 host2 then ssh user at host1 and ssh user at host2 would lead to a shell on the same host with the same user, but SSH_SERVER_HOST would be different, and that would...
2004 Apr 06
2
[Bug 834] timezone settings on irix lost
...eing set: ssh hostname "export" IRIX: DISPLAY=localhost:10.0 HOME=/root LOGNAME=root MAIL=/usr/mail//root PATH=/usr/sbin:/usr/bsd:/sbin:/usr/etc:/usr/bin:/usr/bin/X11:/usr/LOCAL/ssh/bin:/usr/LOCAL/bin:/usr/local/bin: PWD=/root SHELL=/bin/ksh SSH_CLIENT='xxx.xxx.xxx.xxx 53599 22' SSH_CONNECTION='xxx.xxx.xxx.xxx 53599 xxx.xxx.xxx.xxx 22' USER=root Linux: declare -x DISPLAY="localhost:11.0" declare -x HOME="/root" declare -x LOGNAME="root" declare -x MAIL="/var/mail/root" declare -x OLDPWD declare -x PATH="/usr/sbin:/usr/bsd:/sbin:/u...
2017 Apr 26
2
sshd: SSH_CLIENT_CERT and SSH_CLIENT_PUBKEY env variables
Hello, There are environment variables SSH_CLIENT and SSH_CONNECTION with information about client of current session. I want to implement new variables with info about credentials used for session authentication. Such as: SSH_CLIENT_CERT SSH_CLIENT_CERT_ID SSH_CLIENT_CERT_PRINCIPALS SSH_CLIENT_PUBKEY SSH_CLIENT_PUBKEY_FINGERPRINT Some of that information ava...
2001 Nov 12
1
Interesting problem with 3.0p1 and IPv6
...-v cname" where "cname" is a CNAME to the same machnie, the following happens: $ ssh -v hilberto OpenSSH_3.0p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f debug1: Reading configuration data /usr/local/etc/ssh_config debug1: Seeding random number generator debug1: restore_uid debug1: ssh_connect: getuid 0 geteuid 0 anon 0 debug1: Connecting to hilberto [::ffff:194.59.182.6] port 22. debug1: Allocated local port 904. (-> note the different address format!) Warning: This may be due to an old implementation of ssh. debug1: Received server public key (767 bits) and host key (1024 bits)....
2013 Apr 04
1
Using "root" Type User Via Forwarding-SSH-Tunnel Inside Non-Root SSH Connection
...****** In /etc/profile file, i have placed these below 13 lines just above the "unset i" line, at bottom side: if [ -n "$SSH_CLIENT" ] then set $SSH_CLIENT echo "Your current connection coming from IP Address $1 using port $2, to this computer." else if [ -n "$SSH_CONNECTION" ] then set $SSH_CONNECTION echo "Your current connection coming from IP Address $1 using port $2, to this computer." else echo "Your current connection's IP Address & port could not be shown for now." fi fi In /etc/profile.local file, i have placed the...
2001 Apr 05
0
portable OpenSSH bugs.
...Sparc: boris:~/src=> ssh -v bigw.org # see ssh fail OpenSSH_2.5.2p2, SSH protocols 1.5/2.0, OpenSSL 0x0090581f debug1: Seeded RNG with 28 bytes from programs debug1: Seeded RNG with 3 bytes from system calls debug1: Rhosts Authentication disabled, originating port will not be trusted. debug1: ssh_connect: getuid 1001 geteuid 1001 anon 1 debug1: Trying again... debug1: Trying again... debug1: Trying again... Secure connection to bigw.org refused. debug1: writing PRNG seed to file /Users/soren/.ssh/prng_seed boris:~/src=> telnet bigw.org 22 Trying 128.2.156.111... Connected to bigw.org. Escape cha...