Please notice that I don't have any problem with hostname and I can change the hostname by configuring /etc/hostname , and it is easily shown on the terminal.
I just setup two servers on CentOS 7, they are not real servers of course, but when I connect to them using ssh, the hostname doesn't replace by server name and it still shows me
root@localhost on the terminal instead of
The hostname is localhost.localdomain.
184.108.40.206 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.122.1 server1.exampert.com server1 192.168.122.2 server2.exampert.com server2
This question has not been answered. my problem is with hostname which comes after root@ on the terminal when I use ssh command! if I change /etc/hostname or other commands, hostname changes on the terminal as well, but when I use
ssh server1 the hostname is still as it was before using the ssh command! I expect it to be
root@server1 instead of
What could be the problem?