Many events: ... sent unsupported channel request (10, env).

Alex
edited October 2018 in NetApp
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_ID
    debug3: Ignored env HOSTNAME
    debug3: Ignored env TERM
    debug3: Ignored env SHELL
    debug3: Ignored env HISTSIZE
    debug3: Ignored env USER
    debug3: Ignored env LS_COLORS
    debug3: Ignored env MC_TMPDIR
    debug3: Ignored env PATH
    debug3: Ignored env MAIL
    debug3: Ignored env PWD
    debug1: Sending env LANG = en_US.UTF-8
    debug2: channel 0: request env confirm 0
    debug3: send packet: type 98
    debug3: Ignored env HISTCONTROL
    debug3: Ignored env HOME
    debug3: Ignored env SHLVL
    debug3: Ignored env MC_SID
    debug3: Ignored env LOGNAME
    debug3: Ignored env LESSOPEN
    debug3: Ignored env OLDPWD
    debug3: 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-cbc
      Host *
    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=no
    Does 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 -a
    Linux 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-release
    CentOS 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.246
    debug1: Sending environment.
    debug3: Ignored env XDG_SESSION_ID
    debug3: Ignored env HOSTNAME
    debug3: Ignored env TERM
    debug3: Ignored env SHELL
    debug3: Ignored env HISTSIZE
    debug3: Ignored env USER
    debug3: Ignored env LS_COLORS
    debug3: Ignored env MC_TMPDIR
    debug3: Ignored env PATH
    debug3: Ignored env MAIL
    debug3: Ignored env PWD
    debug1: Sending env LANG = en_US.UTF-8
    debug2: channel 0: request env confirm 0
    debug3: send packet: type 98
    debug3: Ignored env HISTCONTROL
    debug3: Ignored env HOME
    debug3: Ignored env SHLVL
    debug3: Ignored env MC_SID
    debug3: Ignored env LOGNAME
    debug3: Ignored env LESSOPEN
    debug3: Ignored env OLDPWD
    debug3: 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.246
    debug1: Sending environment.
    debug3: Ignored env XDG_SESSION_ID
    debug3: Ignored env HOSTNAME
    debug3: Ignored env TERM
    debug3: Ignored env SHELL
    debug3: Ignored env HISTSIZE
    debug3: Ignored env USER
    debug3: Ignored env LS_COLORS
    debug3: Ignored env MC_TMPDIR
    debug3: Ignored env PATH
    debug3: Ignored env MAIL
    debug3: Ignored env PWD
    debug1: Sending env LANG = en_US.UTF-8
    debug2: channel 0: request env confirm 0
    debug3: send packet: type 98
    debug3: Ignored env HISTCONTROL
    debug3: Ignored env HOME
    debug3: Ignored env SHLVL
    debug3: Ignored env MC_SID
    debug3: Ignored env LOGNAME
    debug3: Ignored env LESSOPEN
    debug3: Ignored env OLDPWD
    debug3: Ignored env _

  • Alex
    edited October 2018
    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/config

    SendEnv no


    try 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/config

    SendEnv no

    [stor2rrd@stor2rrd stor2rrd]$

    [stor2rrd@stor2rrd stor2rrd]$ ssh -o ConnectTimeout=15 -o StrictHostKeyChecking=no -o PreferredAuthentications=publickey -vvv stor2rrd@10.100.0.246
    debug1: Sending environment.
    debug3: Ignored env XDG_SESSION_ID
    debug3: Ignored env HOSTNAME
    debug3: Ignored env TERM
    debug3: Ignored env SHELL
    debug3: Ignored env HISTSIZE
    debug3: Ignored env USER
    debug3: Ignored env LS_COLORS
    debug3: Ignored env MC_TMPDIR
    debug3: Ignored env PATH
    debug3: Ignored env MAIL
    debug3: Ignored env PWD
    debug1: Sending env LANG = en_US.UTF-8
    debug2: channel 0: request env confirm 0
    debug3: send packet: type 98
    debug3: Ignored env HISTCONTROL
    debug3: Ignored env HOME
    debug3: Ignored env SHLVL
    debug3: Ignored env MC_SID
    debug3: Ignored env LOGNAME
    debug3: Ignored env LESSOPEN
    debug3: Ignored env OLDPWD
    debug3: 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.246
    debug1: Sending environment.
    debug3: Ignored env XDG_SESSION_ID
    debug3: Ignored env HOSTNAME
    debug3: Ignored env TERM
    debug3: Ignored env SHELL
    debug3: Ignored env HISTSIZE
    debug3: Ignored env USER
    debug3: Ignored env LS_COLORS
    debug3: Ignored env MC_TMPDIR
    debug3: Ignored env PATH
    debug3: Ignored env MAIL
    debug3: Ignored env PWD
    debug1: Sending env LANG = en_US.UTF-8
    debug2: channel 0: request env confirm 0
    debug3: send packet: type 98
    debug3: Ignored env HISTCONTROL
    debug3: Ignored env HOME
    debug3: Ignored env SHLVL
    debug3: Ignored env MC_SID
    debug3: Ignored env LOGNAME
    debug3: Ignored env LESSOPEN
    debug3: Ignored env OLDPWD
    debug3: 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


  • Alex
    edited October 2018
    Hi Pavel.
    My variant is work on all NetApp 7-mode (4 controllers).

    My edtition of file at top in bin/naperf.pl
    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 ";
      $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-cbc
    Host *
            GSSAPIAuthentication yes
            ForwardX11Trusted yes
            SendEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
            SendEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
            SendEnv LC_IDENTIFICATION LC_ALL LANGUAGE
            SendEnv XMODIFIERS
    [root@stor2rrd ~]#

    ~/.ssh/config
    ~/.ssh/environment
    and /home/stor2rrd/stor2rrd/ssh_config
    not exists.

  • ok, then this did the trick?
    ssh -F /dev/null

    You 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 "

Sign In or Register to comment.