Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20 | sshportal: command not found #467

Open
prtomasi opened this issue May 30, 2023 · 5 comments
Open

Ubuntu 20 | sshportal: command not found #467

prtomasi opened this issue May 30, 2023 · 5 comments

Comments

@prtomasi
Copy link

Hi,

I'm trying to install sshportal on Ubuntu 20.04.4 LTS.

I don't have many skills in Linux. So I tried to figure out how to install go and then install sshportal.

All gone well until the installation. But I can't start sshportal. Those are the steps I made:

wget https://go.dev/dl/go1.20.4.linux-amd64.tar.gz

rm -rf /usr/local/go && tar -C /usr/local -xzf go1.20.4.linux-amd64.tar.gz

export PATH=$PATH:/usr/local/go/bin

root@ubuntu-lab:/home/administrator# go version
go version go1.20.4 linux/amd64

go install moul.io/sshportal@latest

But it's missing something, sshportal server is not found:

root@ubuntu-lab:/home/administrator# sshportal server
sshportal: command not found

Any suggestions about the next step?

@prtomasi
Copy link
Author

Now I tried the following commands:

root@ubuntu-lab:/home/administrator# export PATH=$PATH:/root/go/bin/
root@ubuntu-lab:/home/administrator# sshportal server
2023/05/30 14:50:51 error: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
root@ubuntu-lab:/home/administrator#

But it gives me another error message: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work

@easybe
Copy link

easybe commented Jul 5, 2023

Maybe just use Docker (or Podman) instead?

https://github.com/moul/sshportal#docker

@fbarmentlo
Copy link

"Go-sqlite3 requires cgo to work" > could be solved by: apt install build-essential,
Then retrying.

For future questions, it'd be helpful to have output as well, and not just the commands executed.

@libvoid
Copy link

libvoid commented Nov 28, 2023

This project is no longer maintained and all dependencies are EOL. You should consider using another solution or at least migrating to this fork https://github.com/alterway/sshportal

@fbarmentlo
Copy link

This project is no longer maintained and all dependencies are EOL. You should consider using another solution or at least migrating to this fork https://github.com/alterway/sshportal

Did not realize, thanks for pointing this out! Luckily swap was painless in docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants