If you are using Cloudflare as firewall for content delivery then please note that Cloudflare only proxies http/https traffic. i.e., it would be impossible to reach your server through any other service like ssh/ftp/sftp etc.
If you need to connect to your origin using another protocol (SSH, FTP, SMTP, etc.) you need to do so using a record that does not have Cloudflare enabled in the DNS settings (grey cloud) or by connecting directly to the origin server’s IP address.
For example, if your domain is example.com, connect to server using a grey url like
$ ssh user@ssh.example.com
where ssh.example.com is an A record pointing to same ip as example.com.
Tag: ssh
Speed up ssh login
Below setting in /etc/ssh/sshd_config made the ssh login ultra fast.
UseDNS no
This was done on CentOS 7.3. After this change, restart the sshd service and enjoy the speed. 🙂
[tweetthis display_mode=”button_link”]Speed up ssh login[/tweetthis]