с помощью scp я могу получить файл
scp remoteA:file .
и положил файл
scp file remoteB:
но когда я пытаюсь
scp remoteA:file remoteB:
я получил
ssh: Could not resolve hostname remoteB: Name or service not known
lost connection
Зачем?
РЕДАКТИРОВАТЬ:
описание remoteA и remoteB находится в ~/.ssh/config