too many logins, can't scp files ???
hey guys,
i'm working on a LAN and i'm trying to scp one set of files across the LAN from one machine (juggernaut) to my local/home machine (darkmatter) and yes i have user accts. on both machines, and no i did not name the machines. my sys admin named them. he has no idea how to fix this problem and he really doesn't know squat about linux anyways. so i ssh to juggernaut,no problem, and then i give the following command on juggernaut while i'm logged in on juggernaut Code:
[atjurhs@juggernaut directory]$ scp files darkmater:/home/atjurhs/tmp juggernaut "appears" to have done his job and returns no errors, BUT when i open a new terminal on darkmatter and cd to /home/atjurhs/tmp (atjurhs is my user name) the files are not there? i can log logout and log back into darkmatter, no problem. i can log logout and log back into juggernaut using ssh, no problem. when i do ssh back into juggernaut i get the message on juggernaut of Code:
Too many logins for atjurhs if i close out of most of my terminals, open a terminal back up and log back into juggernaut i can scp the files to darkmatter no problem. why would too many logins on juggernaut prevent me from scp files onto darkmatter one other piece of info is, i'm running Centos7.4 |
Because juggernaut limits logins from darkmatter (or, more likely, all users). scp logs in.
|
Quote:
|
michaelk thanks for your help! but...
juggernaut is a server and darkmatter is my local. i'm not sure if juggernaut is on Centos7.4 or not? you are correct, when i typed in the command in this forum shown in post #1, i typed it in this forum incorrectly, but when i type in the correct command on juggernaut i get the behavior i described, i'll go back and edit post #1 for clarity Code:
[atjurhs@juggernaut directory]$ scp files darkmatter:/home/atjurhs/tmp i have even tried it using darkmatter's ip address in the command and with too many terminals open on juggernaut, they still don't transfer |
As RandomTroll suggested the server could be configured to limit maxlogins (/etc/security/limits.conf)
|
hmmm?
even with many terminals on juggernaut open, i can still give other commands on juggernaut and they work just fine it 's only when trying to transfer files off of it the limits.conf file only has comments, working no info in the /etc/security directory there is a limits.d sub-directory, within that there is a 90-nproc.conf file, it's only info is Code:
|
if this hepls
juggernaut is running Centos6.9 darkmatter is running Centos7.4 so maybe there's a clash in that? |
My memory is failing. If you say it is failing at 10 or 11 terminals then it could be due to sshd's MaxSessions directive.
Quote:
|
michaelk is probably pretty close to it, but
Why do you have more than one terminal connected to either computer? Do you understand that scp does an additional logon? It does not use the open ssh connection, but creates a separate ssh connection for the copy. If you have multiple terminal windows open and multiple scp attempts, that could be hitting the limit. |
Well, actually MaxSessions is for session multiplexing and not for standalone sessions. I would guess that the OP isn't using multiplexing.
There is a systemd-logind max session configuration but does not apply to sftp? I'm still looking... |
how do i find out about multiplexing and masxsessions?
i still gotta ask how could too many sessions ever be a problem for it? that sounds so "Windows" like |
Quote:
OpenSSH's setting for MaxSessions would be over on the server. See the manual page for sshd_config about that. |
atjurh: Please post the contents of /etc/security/limits.conf on both servers.
Again, each scp command creates another login...they do NOT use the login of the ssh terminal in which they are connected, so if the limit in limits.conf is set to 2, and you have two open terminals to the server, then the scp will constitute a third login, resulting in "Too many logins for <user>" |
Quote:
although the limits.conf file on juggernaut (the server) has all lines commented out thereby using the default value. the limits.conf file on darkmatter does not, it reads Code:
* hard maxlogins 10 |
There you go... :)
I did not know about that file until I searched for "Too many logins for user" -- It appears to be part of the PAM configuration, about which I know nothing. Glad I could help. |
All times are GMT -5. The time now is 11:46 PM. |