How to detect the OS type of a SSH client from the remote OS

2

If I am using PuTTY from Windows to SSH to a remote OS, how do I detect what OS the SSH client is running on, from within the remote OS?

I think this is probably impossible. Merely the terminal type of a SSH client is difficult to detect.

Bohr

Posted 2014-06-18T13:44:05.827

Reputation: 466

You mean the SSH server? The client is PuTTY on your side. – Matteo – 2014-06-18T14:11:41.167

@Matteo I mean the type of the OS PuTTY is running on. – Bohr – 2014-06-18T14:28:36.307

If you're looking for a command from SSH to get remote OS, you can try [cat /etc/*-release], [uname -a], or [cat /proc/version] but those will likely work only with linux – Grant – 2014-06-18T14:59:47.960

No answers