Access Linux Server from another Server

Hi everyone, this is a very interesting topic. I just wanted to migrate all the data from one server to another server. However, using I could write my own bash script for that, but I couldn't find how can I access the other server with the passwordless method. However, just...