![]() |
|
Setting Up ssh on Linux - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88) +---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85) +---- Thread: Setting Up ssh on Linux (/showthread.php?tid=5412237) |
Setting Up ssh on Linux - jackharper - Sep 21, 2016 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 * - XMR - Sep 21, 2016 You should be able to log in with the same user accounts that are on the system. * - xkox - Sep 22, 2016 Depends. What operating system are you using? Do you have cPanel? Having one will make the process easier. Let me know. * - kiasa - Sep 22, 2016 If you're running Ubuntu, Debian, or any other distribution based on Debian: Code sudo apt-get install openssh-serverIf 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 sshCode sudo systemctl restart sshFor more information please reference: https://help.ubuntu.com/community/SSH/OpenSSH/Configuring (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. 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. * - xkox - Sep 23, 2016 (Sep 22, 2016 11:18 PM)kiasa Wrote: If you're running Ubuntu, Debian, or any other distribution based on Debian: Your signature rocks. Thanks for clearing this out :) * - ayleid96 - Sep 23, 2016 other guy posted a solution, login with the same user you are loging to that machine * - kiasa - Sep 23, 2016 (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. * - ayleid96 - Sep 24, 2016 (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 * - SuckySucky - Sep 25, 2016 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.. * - kiasa - Sep 25, 2016 (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? * - SuckySucky - Sep 26, 2016 (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. * - walrusEOF - Sep 26, 2016 The SSH server file configuration is normally located at this location on your GNU/Linux operating system Code /etc/ssh/sshd_configopen 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 UserNameTo 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. * - 8lue7ornado - Oct 7, 2016 ssh (ip or name of the server) -l (your username) |