To transfer files with ftp I’ve been setting local directory with LCD /home/user/ and then setting the remote dir with cd /domain/folder. To check the current folder I use PWD (for remote) or !PWD (for local).
Is there a similar way to do this with an SSH connection?
while
sshdoesn’t directly support what you are trying to do, it does have some tools that may be useful.To get a directory of $HOME.
To get a directory of /tmp.
To upload a file to your home directory
To upload a file to: /tmp/z.sh