Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Cyanite85578y@ScribeOfGoD
I need a simplistic/dumbed down SSH command with only essential command args.
Login, Version info, etc..
Also, what ports are commonly used for SSH? -
@Cyanite port 22 is used mostly, but can change in the config. What do you mean dumbed down command?
Login can be done multiple ways, ssh username@serverip, ssh server up address which uses your username on the local machine for login. And to install it's sudo apt-get install openssh-server. -
Cyanite85578y@ScribeOfGoD
Well, right now I just have; "connect *IP*"
I'd like something slightly more complicated, but realistic.
ssh 11.111.111.11 -l root@toor
(note that I know nothing about real ssh, nor do i have the ability to test anything without desktop internet)
But I want it to be true(enough) to actual SSH commands. I tried google, but the tutorials are over complicated. I really just want something simple.
The person will need to pass an IP, User, and password.
The ability to hack the SSH login will be determined by the version (e.g hacks only work for specific versions) so there needs to be a command to check the version.
Do note; I can only support '-c', and '--command' style arguments. (this includes toggles (--allowSomething) and values (--user "root") however i could support other things using custom code (such as root@password) -
Well to use a different port it is -p portnumber. Maybe you can use that somehow. Have you tried looking on YouTube? That always helps me
-
Cyanite85578y@ScribeOfGoD
I don't need all of the details though.. Like.. How would you login to '11.111.111.11' with the username 'root' and the password 'toor'?
(also, thanks for -p that'll come in handy) -
As far as i know it's hard to use a password in a ssh command. If you can, create an ssh keyfile that way you can just ssh de@tails and it will auto login if your public key on the server matches the private key on your computer
-
Cyanite85578y
-
@Cyanite like private and public keys, you habe your private key, its just that, private, it has a pair, the public key, that you upload to the server in your home dir, if private key == public key then allow login, if private key != public key then deny login
-
Cyanite85578y@ScribeOfGoD
See, I'm just a game developer. I know nothing about any of this lol.
What would this file look like? Where would it be on the cliant/server?
What would be in it? -
Cyanite85578y@ScribeOfGoD
Can I seriously just get one person who can just "play pretend" and make something up, or give me a minimal answer and not point me to documention that I do not understand. -
@Cyanite it literally tells you what you want though. We're devs, we look at documentation when we do not understand mate. There's plenty of sources that tell you the info you need. I didn't know most of what I know by school or other people, I learned it myself and now am trying to go to school for it :)
-
Cyanite85578y@ScribeOfGoD
I avoid documentation because the mass of words confuses me more..
I stick to SO, and other devs. -
ssh USERNAME@IP -p PORT
Enter password for USERNAME: (you can't see the characters here, they aren't even masked, there's just nothing printed out here)
[PRESS ENTER] -
Jacobgc9108yHere's a very basic command to connect to an SSH server
ssh username@ip
The default port is 22 otherwise you can use -p PORT to specify a different port
With SSH once it connects it will then ask for the on a new line:
"Password: "
Hope this helps -
Cyanite85578y@Gatgeagent @Admim
I can't impliment that kind of password entry. It would lock up Tkinter
Related Rants
I need someone who knows how to use 'ssh', to help me make a mockery for my game.
Just need to ask a few questions
undefined
ssh
superuser
gamedev