gusdpr Posted June 25, 2016 Report Share Posted June 25, 2016 Good day Plastic SCM staff, I have found a problem with Plastic SCM 5.4.16.760 with the CLI tool picking the wrong ssh port when trying to clone a git repository using a ssh URL on Windows. C:\PlasticProjects\bitbucket_test>cm sync gittest git ssh://myuser@xyz.com:7999/tst/test_repo1.gitssh: connect to host xyz.com port 22: Connection refusedError: An error occurred while connecting to Git: Stream terminated early I was following this guide: https://www.plasticscm.com/documentation/gitsync/plastic-scm-version-control-gitsync-guide.shtml The cm command doesn't seem to have an option to specify the ssh port. Is there any workaround for this issue? Thanks, Gus Link to comment Share on other sites More sharing options...
manu Posted June 27, 2016 Report Share Posted June 27, 2016 Hi Gus, I'm sorry but the ssl port target value can't be changed it will always use the default one. Best, Manu. Link to comment Share on other sites More sharing options...
manu Posted July 5, 2016 Report Share Posted July 5, 2016 Ops! Carlos gave me this: Problem: The ssh server is not in port 22, or I need to use different private keys for different servers. Solution: You can create a "config" file under your ".ssh" directory specifying different settings for different servers. This is an example of ssh "config" file: Host gitolite.elegosoft.com User gitolite Port 2222 IdentityFile ~/.ssh/id_rsa Host github.com User git IdentityFile ~/.ssh/github_key Host bitbucket.org IdentityFile ~/.ssh/id_rsa Link to comment Share on other sites More sharing options...
CG Posted November 12, 2018 Report Share Posted November 12, 2018 Can you please add this to the official documentation for plastic under the GIT Sync section? This information only seems to exist here in this one post in the forum. Not only is this useful for port information, but it is very helpful when you need to access a GIT repo where you have to use an SSH key. If this is a supported and valid method that will continue to be available in plastic going forward it would be helpful if it were in the documentation. Also, the SSH seems to only work on the command line using "cm sync". The documentation says this isn't supported (but only talks about gitsync in the context of the GUI--it would be very helpful to document that this is possible). As an aside, since we can use this on the command line, why don't you allow it via the GUI??? One other note..."cm sync" doesn't work to BitBucket against an empty repo. It indicates that it does work, but when attempting to browse project in BitBucket it fails. However, if the BitBucket project has at least one commit before attempting to sync, then everything works fine. But again, it would be very nice if SSH syncing were possible through the GUI. Couldn't you simply add a check box to the "Sync with Git..." pop up to use SSH (instead of username and password)??? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.