Stash, SSL, and SSH

I am currently running Stash on https on the default 443 port. I want to turn on SSH but it resets my port and blanks out the URL everytime I try and enable it. It says everything will default to 8443 for SSH. If I try and change the port to say 7999 and the URL to ssh://gittest.starz.com:7999 and click save it reverts to the attached image. Why won't it let me change this. I have tried multiple ports. Can I trust that it is available on 8443? Just haven't gotten that far...is it because I am running it on 443 for https? I have http disabled.I guess I can attach image after its posted as I am not seeing an attachment link on original posting edit area :-(

Thanks Andrew!

3 answers

1 accepted

0 votes
Accepted answer

Hi Andrew,

Is there anything in the logs to tell you what might be happening? When Stash starts it prints out the following to $STASH_HOME/log/atlassian-stash.log.

2013-01-22 21:06:12,576 INFO  [Spring executor 5]  c.a.stash.ssh.server.SshServer Starting SSH server on port 7999...
2013-01-22 21:06:12,679 INFO  [Spring executor 5]  c.a.stash.ssh.server.SshServer Started SSH server successfully.

If it has successfully changed then you should see the following:

2013-04-25 15:14:18,649 INFO  [http-bio-7990-exec-10] admin 914x312x1 97xoho 0:0:0:0:0:0:0:1 "POST /admin/server-settings HTTP/1.1" c.a.stash.ssh.server.SshServer Starting SSH server on port 8443...
2013-04-25 15:14:18,652 INFO  [http-bio-7990-exec-10] admin 914x312x1 97xoho 0:0:0:0:0:0:0:1 "POST /admin/server-settings HTTP/1.1" c.a.stash.ssh.server.SshServer Started SSH server successfully

If you want to test that it's working, try telneting to the port (using either gittest.starz.com or localhost if you're on the actual box). eg.

> telnet gittest.starz.com 8443

I'm assuming you're not seeing any errors about binding to used ports? If you change the port number you also need to change the URL if you have one (and vice-versa).

Cheers,

Charles

Here is image after wiping out any changes I have made.

okay uncle...how do I add an image from an upload? Crazy....

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

407 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you