There are two common ways of accessing your home network remotely and securely: a SSH server or VPN server. Both options have various pros and cons as is usually the case when comparing two different things. These technologies provide an encrypted connection which is important for security of your network when you want to have remote access to your network. Encryption alone is not enough to guarantee security. You can easily be communicating with a malicious hacker via an encrypted connection.