PyCharm remote debugging
The first argument of pydevd.settrace
function should be the host, where PyCharm is installed. Not remote server.
Also in most cases if you want to run and debug your code remotely it is more convenient to use remote interpreter feature.