Для меня работает как очарование SSHD_CONFIG
Protocol 2
AuthorizedKeysFile .ssh/authorized_keys
KerberosAuthentication yes
KerberosOrLocalPasswd yes
KerberosTicketCleanup yes
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM yes
X11Forwarding yes
X11UseLocalhost yes
UsePrivilegeSeparation yes # Default for new installations.
Banner /etc/issue.net
Subsystem sftp /usr/libexec/openssh/sftp-server
Ciphers aes256-ctr,aes192-ctr,aes128-ctr,arcfour256
MACs hmac-sha2-256,hmac-sha2-512,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
SSH_CONFIG
Host *
ForwardX11trusted yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials yes
и использование
ssh -X remotehost
, конечно, Sure Server должно быть установлено полностью (с помощью GroupInstall, хорошая идея)
Если все, что вам нужно, это удалить именно эту строку и не заботиться о том, где она найдена или вообще о контексте, просто сделайте следующее:
sed -i.bak 's/div-id="st-head" class="noprint"//g' a.html b.html c.html
Это удалит все вхождения этой строки из каждого указанного файла html и копию оригинала с именем [filename.html] .bak
.