我在/etc/profile文件末尾添加了以下代码,为了通过mailgun发送一封邮件,其中包含用户和ip连接的信息,它发送邮件,但我不知道如何获得ssh用户名和原名ip?如果/etc/profile中的方法失败,是否有可能无法登录ssh?#!/bin/bash
##This script sends a mail on succesful shh log
好心人,请帮帮忙。我无法推送文件,我收到错误消息: Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the Counting objects: 2, done.
Writing objects: 100% (2/2), 200 bytes