Hi Friends
I was trying to set up shh server on my linux machine and then connect from mobile.
But the problem I am facing is that , I dont how to configure the server on the machine.
i mean like
how to we add user and key that will be used to login from mobile.
so can you help me this
trust me googled it but can seem to understand how to configure it
Thanks for helping
You should be able to log in with the same user accounts that are on the system.
The poor remain poor by acting rich.
Depends. What operating system are you using? Do you have cPanel? Having one will make the process easier.
Let me know.
Sep 22, 2016 11:18 PM
(This post was last modified: Sep 22, 2016 11:36 PM by kiasa.)
If you're running Ubuntu, Debian, or any other distribution based on Debian:
Code sudo apt-get install openssh-server
If you are running a different distribution, use the package manager provided to install openssh-server (pacman, portage dnf, yum)
Then start or restart the service:
Code sudo systemctl start ssh
or
Code sudo systemctl restart ssh
For more information please reference:
https://help.ubuntu.com/community/SSH/Op...onfiguring
(Sep 22, 2016 03:55 AM)xkox Wrote: Depends. What operating system are you using? Do you have cPanel? Having one will make the process easier.
Let me know.
The OS is irrelevant, generally setting up an SSH server is the same among the majority of distributions and operating systems.
cPanel, will not make the process easier, or quicker - it's already as simple as installing ssh server and if you want; configuring it to your liking.
(Sep 22, 2016 11:18 PM)kiasa Wrote: If you're running Ubuntu, Debian, or any other distribution based on Debian:
Code sudo apt-get install openssh-server
If you are running a different distribution, use the package manager provided to install openssh-server (pacman, portage dnf, yum)
Then start or restart the service:
Code sudo systemctl start ssh
or
Code sudo systemctl restart ssh
For more information please reference:
https://help.ubuntu.com/community/SSH/Op...onfiguring
The OS is irrelevant, generally setting up an SSH server is the same among the majority of distributions and operating systems.
cPanel, will not make the process easier, or quicker - it's already as simple as installing ssh server and if you want; configuring it to your liking.
Your signature rocks.
Thanks for clearing this out :)
other guy posted a solution, login with the same user you are loging to that machine
(Sep 23, 2016 10:35 AM)ayleid96 Wrote: other guy posted a solution, login with the same user you are loging to that machine
SSH isn't installed by default on all systems, so that "solution" isn't a solution at all.
(Sep 23, 2016 02:51 PM)kiasa Wrote: SSH isn't installed by default on all systems, so that "solution" isn't a solution at all.
its a solution for ubuntu.. we are presuming that he is using ubuntu, if he needs anything else he is free to ask
kiasa Wrote:If you are running a different distribution, use the package manager provided to install openssh-server (pacman, portage dnf, yum)
Package name can also differ from distribution to distribution..
Sep 25, 2016 09:50 PM
(This post was last modified: Sep 26, 2016 02:11 AM by kiasa.)
(Sep 25, 2016 08:44 PM)SuckySucky Wrote: Package name can also differ from distribution to distribution..
Are you seriously going to follow me to every thread attempting to correct all of my little errors?
Sep 26, 2016 03:25 AM
(This post was last modified: Sep 26, 2016 03:25 AM by SuckySucky.)
(Sep 25, 2016 09:50 PM)kiasa Wrote: Are you seriously going to follow me to every thread attempting to correct all of my little errors?
There is no error there, just wanted to include that information as well. So people wont gravedig the thread asking why the package "openssh-server" isn't being found.
But if you can't read, why are you even on a forum ?
If you can't take critisism, question or added information towards your posts, then just get out of here.
The SSH server file configuration is normally located at this location on your GNU/Linux operating system
Code /etc/ssh/sshd_config
open its with any text editor (VI, Nano, Emacs) and make the changes you're looking for.
When you create new users on a GNU/Linux operating system, SSH for the new users is enabled by default so execute the following commands to create your new user.
Code adduser UserName
Password: SecurePasswordHere
To have public key authorization just change into the new user you've created by doing the su command. Create a directory called .ssh, cd into .ssh and then create a file called authorized_keys with a text editor.
From your phone generate a SSH keypair and then copy your public key (id-rsa long string of text) to your authorized_keys file on your server.
ssh (ip or name of the server) -l (your username)
|