I’m a new user to Boundary and i wanted to know if it’s possible firstly how could i connect to another ip address from my network. I already succeeded the 1st step to start a development environment but i don’t really know how to proceed to start another environment with another ip.
You don’t really need a whole environment, even, just a single other host would do for creating a target. Are you running boundary dev on your own machine, or are you running one of the Boundary reference architectures from the GitHub repo of them?
start an application in a container on your machine, and use that as a target
provision a cloud instance or service with a public IP you can access from your machine, and use that as a target
But the easiest in dev mode is:
run an application directly on your machine, and set that up as a target
Dev mode already creates a host catalog, host set, and host for you that point to localhost. It even creates a target to SSH to localhost, but if your machine isn’t running SSH that won’t work.
I’m running Boundary on my localhost and yes on my machine i’m connecting to my Boundary server on SSH. I followed the tutorial when you show the terminal with creating a token to authenticate yourself on the Boundary website.
If you just want a target that points somewhere else, you can actually define a host that points to a public website hostname and use that for your target – if you’re going to browse through the Boundary proxy with a regular web browser instead of curl, make sure you set the allowed connections in the session to -1 so it’s unlimited. (You might have to deal with TLS warnings in the browser for secure websites since you’ll be browsing to a localhost URL which won’t match any TLS certificate a public website presents.)
If you want a real host that you control to use as a target, I’d probably look at running a free-tier instance in a public cloud (make sure it has a public IP associated so you can connect to it but also make sure you lock down SSH access and network rules so only you can connect to it).
Hey sorry to be back but i don’t know why i still can’t connect my boundary interface on another host than mine. I still can’t launch a boundary dev to another machine and the TLS isn’t a problem from now cause i don’t need to launch more than one session at the same time.
I have that error if you maybe know what does it mean.
There are a large number of reasons why you could be getting that error, unfortunately. It could be that something is already listening on that port; it could be that you don’t have permissions to bind to that interface and/or port via some security policy; etc.
Does boundary dev work if you don’t specify an address, so it binds to localhost?
Actually i was also trying something similar to @benachour ,so was trying to connect to target with different ip rather than the localhost,and my localhost machine has boundary running in dev and i am using ssh,
so this is the command i am using to connect the target
./boundary connect ssh -target-id ttcp_DuyBXO1E85 -addr=http://xxxxxxxx username boundary
and the session is getting automatically closed
this what the message is:
ssh_exchange_identification: Connection closed by remote host
That’s an SSH error. It sounds like whatever authentication you’re trying to use with the remote host (password or SSH keypair) isn’t being accepted by it. Are you sure you have the right credentials or key to log in to it?
It’s not possible to tell what the cause is from here. Check the SSH server logs on the target, that might give you some info on why it’s rejecting authentication.