Sim Adicione um arquivo ~/.ssh/config contendo:
LogLevel ERROR
O OpenSSH exibe o conteúdo de /etc/issue do servidor remoto. Esse parâmetro desabilita essa exibição. Muito útil quando a empresa remota Git repo como um aviso de segurança irritante.
A ssh config manpage diz:
LogLevelGives the verbosity level that is used when logging messages from ssh(1). The possible values are:
QUIET,FATAL,ERROR,INFO,VERBOSE,DEBUG,DEBUG1,DEBUG2, andDEBUG3. The default isINFO.DEBUGandDEBUG1are equivalent.DEBUG2andDEBUG3each specify higher levels of verbose output.
Truque extra Adicione também no seu ~/.ssh/config
Host *
StrictHostKeyChecking no
Isso evita outra mensagem irritante. Ao se conectar a um novo host, a seguinte pergunta de segurança bloqueia a conexão em andamento. O truque acima sempre assume yes . No entanto, na prática você sempre responde yes , não é?
The authenticity of host 'newhostname (11.222.33.44)' can't be established.
RSA key fingerprint is aa:bb:cc:dd:ee:ff:11:22:33:44:55:66:77:88:99:00.
Are you sure you want to continue connecting (yes/no)?