Many events: ... sent unsupported channel request (10, env).
Hi.
Machine Type: NetApp
System ID: 1574799284
System Model: N6240
System Mode: 7MODE
ONTAP Version: Data ONTAP Release 8.1.4P10 7-Mode: Fri Nov 11 22:59:59 PST 2016
See in Health status many strings:
Column Event
SSH client (SSH-2.0-OpenSSH_7.4) from 10.100.0.235 sent unsupported channel request (10, env).
What need make, for exclude this messages?
Comments
-
In some Internet posts i read that problem with env LANG
ssh -vvv ...debug1: Sending environment.debug3: Ignored env XDG_SESSION_IDdebug3: Ignored env HOSTNAMEdebug3: Ignored env TERMdebug3: Ignored env SHELLdebug3: Ignored env HISTSIZEdebug3: Ignored env USERdebug3: Ignored env LS_COLORSdebug3: Ignored env MC_TMPDIRdebug3: Ignored env PATHdebug3: Ignored env MAILdebug3: Ignored env PWDdebug1: Sending env LANG = en_US.UTF-8debug2: channel 0: request env confirm 0debug3: send packet: type 98debug3: Ignored env HISTCONTROLdebug3: Ignored env HOMEdebug3: Ignored env SHLVLdebug3: Ignored env MC_SIDdebug3: Ignored env LOGNAMEdebug3: Ignored env LESSOPENdebug3: Ignored env OLDPWDdebug3: Ignored env _Option -o SendEnv=no not work for my SSH client.
-
I find two methods:
1. disable LANG in /etc/ssh/ssh_config, but it effect on ALL ssh sessions
#SendEnv LANG
2. make /home/stor2rrd/stor2rrd/ssh_config with:Ciphers +3des-cbcHost *
by view original /etc/ssh/ssh_config by command: cat /etc/ssh/ssh_config | grep -v "^#"and edit bin/napref.pl in line 43 to:
$ssh = "ssh -F /home/stor2rrd/stor2rrd/ssh_config -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey ";
Events in Health Status in NetApp is no.
I do not know, may be found more methods for resolve this ptoblems? -
Hi,Set SSH parameter in etc/stor2rrd.cfg to:SSH="ssh -q -o ConnectTimeout=80 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -o SendEnv=no "This should be setting. It contains -o SendEnv=noDoes it help?
-
Hi, Pavel, you directly write option SendEnv=no in naperf.pl line 43. But it not work for me.
OS:[root@stor2rrd ~]# uname -aLinux stor2rrd 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux[root@stor2rrd etc]# cat /etc/centos-releaseCentOS Linux release 7.4.1708 (Core)
V1:[stor2rrd@stor2rrd stor2rrd]$ ssh -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -o SendEnv=no -vvv stor2rrd@10.100.0.246debug1: Sending environment.debug3: Ignored env XDG_SESSION_IDdebug3: Ignored env HOSTNAMEdebug3: Ignored env TERMdebug3: Ignored env SHELLdebug3: Ignored env HISTSIZEdebug3: Ignored env USERdebug3: Ignored env LS_COLORSdebug3: Ignored env MC_TMPDIRdebug3: Ignored env PATHdebug3: Ignored env MAILdebug3: Ignored env PWDdebug1: Sending env LANG = en_US.UTF-8debug2: channel 0: request env confirm 0debug3: send packet: type 98debug3: Ignored env HISTCONTROLdebug3: Ignored env HOMEdebug3: Ignored env SHLVLdebug3: Ignored env MC_SIDdebug3: Ignored env LOGNAMEdebug3: Ignored env LESSOPENdebug3: Ignored env OLDPWDdebug3: Ignored env _
V2:[stor2rrd@stor2rrd stor2rrd]$ ssh -F ssh_config -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -vvv stor2rrd@10.100.0.246# no Sending environment section #
Finaly, clear command ssh
V3:[stor2rrd@stor2rrd stor2rrd]$ ssh -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -vvv stor2rrd@10.100.0.246debug1: Sending environment.debug3: Ignored env XDG_SESSION_IDdebug3: Ignored env HOSTNAMEdebug3: Ignored env TERMdebug3: Ignored env SHELLdebug3: Ignored env HISTSIZEdebug3: Ignored env USERdebug3: Ignored env LS_COLORSdebug3: Ignored env MC_TMPDIRdebug3: Ignored env PATHdebug3: Ignored env MAILdebug3: Ignored env PWDdebug1: Sending env LANG = en_US.UTF-8debug2: channel 0: request env confirm 0debug3: send packet: type 98debug3: Ignored env HISTCONTROLdebug3: Ignored env HOMEdebug3: Ignored env SHLVLdebug3: Ignored env MC_SIDdebug3: Ignored env LOGNAMEdebug3: Ignored env LESSOPENdebug3: Ignored env OLDPWDdebug3: Ignored env _ -
Thanks for your comment. I see what is var $ENV{SSH}.
My changes in naperf.pl to:my $ssh = $ENV{SSH};#if ( !defined($ssh) || $ssh eq '' ) {# $ssh = "ssh -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -o SendEnv=no ";$ssh = "ssh -F /home/stor2rrd/stor2rrd/ssh_config -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey ";#} -
ok, this should help:vi ~/.ssh/configSendEnv notry it now.if stil no way then try to comment out all SendEnv in /etc/ssh/ssh_config
-
Make it, not work.[stor2rrd@stor2rrd stor2rrd]$ ll ~/.ssh/config-rw-r--r-- 1 stor2rrd stor2rrd 13 Oct 18 12:54 /home/stor2rrd/.ssh/config[stor2rrd@stor2rrd stor2rrd]$ cat ~/.ssh/configSendEnv no[stor2rrd@stor2rrd stor2rrd]$[stor2rrd@stor2rrd stor2rrd]$ ssh -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -vvv stor2rrd@10.100.0.246debug1: Sending environment.debug3: Ignored env XDG_SESSION_IDdebug3: Ignored env HOSTNAMEdebug3: Ignored env TERMdebug3: Ignored env SHELLdebug3: Ignored env HISTSIZEdebug3: Ignored env USERdebug3: Ignored env LS_COLORSdebug3: Ignored env MC_TMPDIRdebug3: Ignored env PATHdebug3: Ignored env MAILdebug3: Ignored env PWDdebug1: Sending env LANG = en_US.UTF-8debug2: channel 0: request env confirm 0debug3: send packet: type 98debug3: Ignored env HISTCONTROLdebug3: Ignored env HOMEdebug3: Ignored env SHLVLdebug3: Ignored env MC_SIDdebug3: Ignored env LOGNAMEdebug3: Ignored env LESSOPENdebug3: Ignored env OLDPWDdebug3: Ignored env _..n6240-1a> Thu Oct 18 12:55:47 MSK [n6240-1a:openssh.invalid.channel.req:warning]: SSH client (SSH-2.0-OpenSSH_7.4) from 10.100.0.235 sent unsupported channel request (10, env).exit
[stor2rrd@stor2rrd stor2rrd]$ ssh -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -o SendEnv=no -vvv stor2rrd@10.100.0.246debug1: Sending environment.debug3: Ignored env XDG_SESSION_IDdebug3: Ignored env HOSTNAMEdebug3: Ignored env TERMdebug3: Ignored env SHELLdebug3: Ignored env HISTSIZEdebug3: Ignored env USERdebug3: Ignored env LS_COLORSdebug3: Ignored env MC_TMPDIRdebug3: Ignored env PATHdebug3: Ignored env MAILdebug3: Ignored env PWDdebug1: Sending env LANG = en_US.UTF-8debug2: channel 0: request env confirm 0debug3: send packet: type 98debug3: Ignored env HISTCONTROLdebug3: Ignored env HOMEdebug3: Ignored env SHLVLdebug3: Ignored env MC_SIDdebug3: Ignored env LOGNAMEdebug3: Ignored env LESSOPENdebug3: Ignored env OLDPWDdebug3: Ignored env _ -
I read many posts in Internet. Try many variations, but ALL not work. I do not know why.
But i modify my variant line 43 in /bin/naperf.pl, for not need make any additional files, it is work:
$ssh = "ssh -F /dev/null -o Ciphers=+3des-cbc -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey ";
-
does above setting work?Have you trie dto comment this?grep SendEnv /etc/ssh/ssh_config
-
Hi Pavel.
My variant is work on all NetApp 7-mode (4 controllers).
My edtition of file at top in bin/naperf.plmy $ssh = $ENV{SSH};#if ( !defined($ssh) || $ssh eq '' ) {# $ssh = "ssh -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -o SendEnv=no ";# $ssh = "ssh -F /home/stor2rrd/stor2rrd/ssh_config -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey ";$ssh = "ssh -F /dev/null -o Ciphers=+3des-cbc -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey ";#}
Comment i do not trie, because server serve more storages and SAN switches, and my inventory scripts. This is problem of NetApp, and i effect only by this storage.
[root@stor2rrd ~]# cat /etc/ssh/ssh_config | grep -v "^#"Ciphers +3des-cbcHost *GSSAPIAuthentication yesForwardX11Trusted yesSendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGESSendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENTSendEnv LC_IDENTIFICATION LC_ALL LANGUAGESendEnv XMODIFIERS[root@stor2rrd ~]#~/.ssh/config
~/.ssh/environment
and /home/stor2rrd/stor2rrd/ssh_config
not exists. -
-
ok, then this did the trick?ssh -F /dev/nullYou can use SSH variable in etc/stor2rrd.cfg to persist product upgrade.Pls confirm it.
-
Yes,
ssh -F /dev/null
make call ssh with default settings, but for NetApp need:
Ciphers +3des-cbc
and i add in cmd option:
-o Ciphers=+3des-cbc
SSH variable in etc/stor2rrd.cfg is used in many Perl files, i need sink about it, and time to test.
-
OK, i make as you wish. Work normaly more 30 minutes. I tested on NetApp n6240 7-mode, IBM Storwize 3700/5000/5030, Fujitsu ETERNUS DX200.
I return code to default.
As Pavel ask, make changes in one file:
etc/stor2rrd.cfg# SSH client#SSH="ssh -q -o ConnectTimeout=80 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -o SendEnv=no "# use this in case of Reflection/Tectia or other comercial ssh distros "ssh -q "SSH="ssh -q -F /dev/null -o Ciphers=+3des-cbc -o ConnectTimeout=80 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey "
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 149 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle