How to get a file from IPFS hash solved at another IPFS node swarm link?

I have two swarm links (A and B) which I use to send files to IPFS system and get hashes. I get a IPFS hash received through swarm link A, do I can use this hash to get the file through swarm link B? How can I do it?