[ http://jira.codehaus.org/browse/WAGONSSH-52?page=comments#action_73813 ] Michael Semb Wever commented on WAGONSSH-52: --------------------------------------------
When I run mvn deploy -Duser.name=mickw it works. So it appears AuthenticationInfo.getUser() is not giving correct heed to .ssh/config settings. If AuthenticationInfo doesn't yet implement this at all, then why have a default user (from user.name system property) at all. Instead if no user was specified then do not prefix the hostname with "user@" at all. Then the ssh executable will correctly pick up the settings from .ssh/config > scpexe won't honour .ssh/config information > ------------------------------------------- > > Key: WAGONSSH-52 > URL: http://jira.codehaus.org/browse/WAGONSSH-52 > Project: wagon-ssh > Issue Type: Bug > Affects Versions: 1.0-alpha-6 > Reporter: Michael Semb Wever > > scp test.xml > sch-login01.osl.basefarm.net:/www/schibstedsok/data/httpd/dev.schibstedsok.no_443/htdocs/maven2/schibstedsok/commons-log4j/1.3-SNAPSHOT/test.xml > > from the command line works just fine. > My local username is mick, and my login on the sch-login01 machine is mickw. > Correspondingly my .ssh/config file contains: > Host sch-login01.osl.basefarm.net > User mickw > My pom.xml specifies: > <distributionManagement> > <repository> > > <url>scpexe://sch-login01.osl.basefarm.net/www/schibstedsok/data/httpd/dev.schibstedsok.no_443/htdocs/maven2</url> > But when running "mvn deploy" I get: > Uploading: > scpexe://sch-login01.osl.basefarm.net/www/schibstedsok/data/httpd/dev.schibstedsok.no_443/htdocs/maven2/schibstedsok/commons-log4j/1.3-SNAPSHOT/commons-log4j-1.3-20060831.163911-1.jar > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error deploying artifact: Error executing command for transfer > Exit code 255 - Permission denied (publickey,password,keyboard-interactive). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira