<div dir="ltr">How about this:<div><br></div><div>```</div><div>Host normalB</div><div>  HostName <a href="http://b.example.com">b.example.com</a></div><div>  User normal</div><div>  Port 2222</div><div><br></div><div>Host rootB</div><div>  HostName <a href="http://b.example.com">b.example.com</a></div><div>  User root</div><div>  Port 2222</div><div>```</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 10:09 AM, Jim Lynch <span dir="ltr">&lt;<a href="mailto:ale_nospam@fayettedigital.com" target="_blank">ale_nospam@fayettedigital.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a backup being run on a system that then uses scp to copy the archive to another system.  The backup is running on system A as root and copies to system B as a normal user, e. g. scp backup.tar <a href="mailto:normal@B.example.com" target="_blank">normal@B.example.com</a>.  In my /root/.ssh/config file I have<br>
<br>
Host <a href="http://B.example.com" target="_blank">B.example.com</a><br>
Port 2222<br>
<br>
I did a ssh-copy-id <a href="mailto:normal@B.example.com" target="_blank">normal@B.example.com</a> AND<br>
ssh-copy-id <a href="http://B.example.com" target="_blank">B.example.com</a><br>
<br>
So ssh works fine to <a href="mailto:root@B.example.com" target="_blank">root@B.example.com</a> but not to <a href="mailto:normal@B.example.com" target="_blank">normal@B.example.com</a><br>
<br>
If I change the ssh port back to 22 it works as advertised, connecting to either, but it won&#39;t connect to another user on <a href="http://B.example.com" target="_blank">B.example.com</a> with an alternate port.  In the man page for .ssh/config there is a User key word but I&#39;m guessing that would force all connections to the host to use that user.<br>
<br>
Other than putting the port number on the command is there a way around this problem?<br>
scp -P 2222 backup.tar <a href="mailto:normal@B.example.com" target="_blank">normal@B.example.com</a> works.<br>
<br>
Thanks,<br>
Jim.<br>
______________________________<u></u>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/<u></u>listinfo</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James Sumners<br><a href="http://james.sumners.info/" target="_blank">http://james.sumners.info/</a> (technical profile)</div><div><a href="http://jrfom.com/" target="_blank">http://jrfom.com/</a> (personal site)</div><div><a href="http://haplo.bandcamp.com/" target="_blank">http://haplo.bandcamp.com/</a> (band page)</div></div></div></div></div>
</div>