To transfer a folder from my local host to a remote host, I normally do:$ scp -r myFolder user@host:destFolder/Trying to make this easier, I aliased the remote host destination:$ alias remoteHost user@host:destFolder/However, scping to the alias doesn't work:$ scp -r myFolder `remoteHost`bash: user@host:destFolder/: No such file or directoryusage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]           [-l limit] [-o ssh_option] [-P port] [-S program]           [[user@]host1:]file1 ... [[user@]host2:]file2
scp to an alias
bash;alias;arguments
alias allows a string to be substituted for a word since when it is used as the first word of a simple command, not string for string like you want.You should use variable instead:remoteHost='user@host:destFolder/'scp -r myFolder $remoteHost