01-07-2009
Show number of SSH connections
I'm investigating an issue where rsync's to an AIX server will sometimes fail. I suspect the problem might be due to the number of simultaneous SSH connections being made to the host dropping the rsync attempts. I'd like to view the number of open ssh connections. The who command will list logged in users, but I need something more. Ideally, I'd like to get a snapshot at specific times of the day.
SSH is specified in the rsync command rather than using rsh. I thought perhaps the sshd_config or sshd2_config in /etc/ssh2 might control the maximum number of connections to the host. And there is a MaxConnection stanza but sshd2_config has it commented out.
A perl script attempts to ssh several files and often 9 out of 10 get transferred. The problem, I believe, occurs when our large number of hosts attempt to get files from the parent host at the same time. The limit on the number of ssh connections hits a peak and causes an rsync to drop. But I don't know for sure.
8 More Discussions You Might Find Interesting
1. BSD
just as the title says.
thanks.
#General Rule Sets
/sbin/ipfw add 0300 check-state
/sbin/ipfw add 0301 deny tcp from any to any in established
/sbin/ipfw add 0302 pass tcp from any to any out setup keep-state
/sbin/ipfw add 0303 pass udp from any to any out
#SSH FTP
/sbin/ipfw add 0400... (11 Replies)
Discussion started by: dwildgoose
11 Replies
2. UNIX for Advanced & Expert Users
Hello friends! :)
I'm very interested in how if one is able to list active and or previous scp connections via OpenSSH to *BSD, GNU machines.
Kinda like "last" does, without being forced to look in logfiles or netstat.
Anyone aware of any such functionallity?
Cheers!
/Donnie B (1 Reply)
Discussion started by: Esaia
1 Replies
3. Solaris
I am using netstat -na command to find out the number of network connections from a specific machine, but this returns information as of now. His there anyway that I can find out this information from yesterday or earlier.
Thanks,
Tim (3 Replies)
Discussion started by: tkimber
3 Replies
4. Ubuntu
Hello friends,
I'm connection to an external network using a VPN configured over an Ubuntu.
The problem is that whenever I get connected to a remote computer using my VPN as router, after a while, sometimes short, sometimes long, sometimes immediately, the connection gets lost and I've to... (1 Reply)
Discussion started by: lzcool
1 Replies
5. UNIX for Advanced & Expert Users
Hello,
What is the best way to disallow new ssh connections for the duration of my session ?
I want to evade read/write collisions. Things work like that - one session put files on server, other copies these files and then deletes them. So in order to evade collision:
- I check if there are... (1 Reply)
Discussion started by: vilius
1 Replies
6. IP Networking
Hello,
I wanna test max tcp connection value. Please suggest how to do that. Thanks. (2 Replies)
Discussion started by: gstoychev
2 Replies
7. Shell Programming and Scripting
hello ,
I need to check how many parallel ssh connections my server can take the load of.
I need to login to different host which i am planning to read from a file and then a write a loop which will do parallel ssh.
Please provide suggestion on how i can write script for the same.\
Thank... (1 Reply)
Discussion started by: ABHIKORIA
1 Replies
8. UNIX for Beginners Questions & Answers
Hello Forum,
I'm using a bit of code from a script I found that allows me to capture the status code of connecting via SSH to remote servers:
ssh -qno StrictHostKeyChecking=no -o ConnectTimeout=1 user@$InputIP 'ls -l /home/user >/dev/null 2>&1' > /dev/null 2>&1
status="$(echo $?)"
echo... (4 Replies)
Discussion started by: greavette
4 Replies
LEARN ABOUT DEBIAN
secpanel
SECPANEL(1) General Commands Manual SECPANEL(1)
NAME
secpanel - a Tcl/Tk front-end to ssh and scp
SYNOPSIS
secpanel
DESCRIPTION
SecPanel serves as a graphical user interface for managing and running SSH (Secure Shell) and SCP (Secure Copy) connections.
Note: SecPanel is not a new implementation of the SecureShell protocol or the ssh software-suite.
SecPanel sits on top of SSH software-suites and supports the SSH.com and the OpenSSH-version. You may get information about these programs
at http://www.ssh.com respectively at http://www.openssh.com.
SecPanel is written entirely in pure Tcl/Tk and does not need any extensions but it requires Version 8.x of Tcl and Tk.
SecPanel is free software and is released under the conditions of the GNU General Public License. See the file COPYING and notes in the
source code for details.
Features
Saves and manages profiles of different SecureShell connections. Gives an ftpclient-like graphical interface/file listing for launching
SCP-transfers. Editing of profiles mainly by mouse-clicking. Gives list of profiles to connect to. One list for default connections
using a default profile and another list for managing special connections e.g. port-forwarding setups for reading mail. Management of the
ssh-agent. Support for generating and distributing keys for public key authentication.
Planned Features
Support for the SSH2 protocol related options, configurations and special features of SSH.com's and OpenSSH's suites.
AUTHOR
Steffen Leich <secpanel@pingx.net>
SEE ALSO
ssh(1), scp(1), ssh-askpass(1), ssh-agent(1)
Debian Project 2002-06-30 SECPANEL(1)