sshping did not work for me.
$ ssh ali # ok
$ sshping -v ali
User: --not specified--
Host: ali
Port: 22
Echo: cat > /dev/null
+++ Attempting connection to ali:22
+++ Connected to ali:22
+++ Authenticated by public key method
*** Cannot login and run echo command
(ali is an alias configured in my ~/.ssh/config. And neither did localhost or direct domain work for me.)
How can I figure out what's wrong?