Root ssh

I can not ssh into root. I have changed ssh port number away from 22 and 222. What am I missing? Doing this on a local network.

What version of the image?

Did you set the root password?

Did you enable root login in /etc/ssh/sshd_config?
···

On 5/24/2018 12:10 PM, David wrote:

  I can not ssh into root. I have changed ssh port number away from

22 and 222. What am I missing? Doing this on a local network.




_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

If you installed via one of the ASL images, you normally login with the repeater ID & then use sudo to gain root access. Even if you change the sshd port from 22 & 222. To enable root ssh access you need to edit the /etc/ssh/sshd_config to PermitRootLogin. 73 de K4SQI

Steve, K4SQI

···

From: David
Sent: Thursday, May 24, 2018 12:10 PM
To: app_rpt-users@lists.allstarlink.org
Subject: [App_rpt-users] Root ssh

I can not ssh into root. I have changed ssh port number away from 22 and 222. What am I missing? Doing this on a local network.

ssh -p222 root@[ip_address]
pw:

···

On Thu, May 24, 2018, 11:16 Steven Blackford kb7sqi@gmail.com wrote:

If you installed via one of the ASL images, you normally login with the repeater ID & then use sudo to gain root access. Even if you change the sshd port from 22 & 222. To enable root ssh access you need to edit the /etc/ssh/sshd_config to PermitRootLogin. 73 de K4SQI

Steve, K4SQI

From: David
Sent: Thursday, May 24, 2018 12:10 PM
To: app_rpt-users@lists.allstarlink.org
Subject: [App_rpt-users] Root ssh

I can not ssh into root. I have changed ssh port number away from 22 and 222. What am I missing? Doing this on a local network.


App_rpt-users mailing list

App_rpt-users@lists.allstarlink.org

http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the “Unsubscribe or edit options button”

You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

Version asl_1.01-20180228-armhf-raspbian-stretch and updated it in asl-menu.

Yes, root password works off of plugin monitor and keyboard.

No sure tried removing prohibit-password. But put it back:

#PermitRootLogin prohibit-password

Thanks David

···

On 5/24/2018 12:10 PM, David wrote:

  I can not ssh into root. I have changed ssh port number away from

22 and 222. What am I missing? Doing this on a local network.




_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

As K4SQI said, you can ssh in as reepater and do a “sudo -s” and you
will have root privileges.

To enable root login via ssh:

PermitRootLogin yes

systemctl restart ssh

BE CAREFUL!

73, Steve N4IRS
···

On 5/24/2018 12:42 PM, David wrote:

      Version

asl_1.01-20180228-armhf-raspbian-stretch and updated it in
asl-menu.

Yes, root password works off of plugin monitor and keyboard.

No sure tried removing prohibit-password. But put it back:

#PermitRootLogin prohibit-password

Thanks David

-------- Original message --------

From: Steve Zingman

Date: 5/24/18 11:12 AM (GMT-06:00)

To:

Subject: Re: [App_rpt-users] Root ssh

What version of the image?

  Did you set the root password?

  Did you enable root login in /etc/ssh/sshd_config?

szingman@msgstor.comapp_rpt-users@lists.allstarlink.org
On 5/24/2018 12:10 PM, David wrote:

    I can not ssh into root. I have changed ssh port number away

from 22 and 222. What am I missing? Doing this on a local
network.




_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users


_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

You shouldn’t be logging in as root anyway. Disable root login via SSH, login as user and use “sudo”.

···

On 5/24/2018 12:42 PM, David wrote:

      Version

asl_1.01-20180228-armhf-raspbian-stretch and updated it in
asl-menu.

Yes, root password works off of plugin monitor and keyboard.

No sure tried removing prohibit-password. But put it back:

#PermitRootLogin prohibit-password

Thanks David

-------- Original message --------

From: Steve Zingman

Date: 5/24/18 11:12 AM (GMT-06:00)

To:

Subject: Re: [App_rpt-users] Root ssh

What version of the image?

  Did you set the root password?

  Did you enable root login in /etc/ssh/sshd_config?

szingman@msgstor.comapp_rpt-users@lists.allstarlink.org
On 5/24/2018 12:10 PM, David wrote:

    I can not ssh into root. I have changed ssh port number away

from 22 and 222. What am I missing? Doing this on a local
network.




_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users


_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

I tried PermitRootLogin yes and systemctl restart ssh. Same result.

I can not log into repeater via ssh either. I can only login via a user I setup.

Root and repeater work off of plugged in keyboard and monitor.

This is what I get if I try sudo from any account:

/etc/sudoers.d/010_-nopasswd: syntax error near line 1<<<

Sudo: parse error in /etc/sudoers.d/010_-nopassword near line 1

Sudo: no valid sudoers sources found. Quitting

Sudo: unable to initialize policy plugin

Thanks David

···

On 5/24/2018 12:42 PM, David wrote:

      Version

asl_1.01-20180228-armhf-raspbian-stretch and updated it in
asl-menu.

Yes, root password works off of plugin monitor and keyboard.

No sure tried removing prohibit-password. But put it back:

#PermitRootLogin prohibit-password

Thanks David

-------- Original message --------

From: Steve Zingman

Date: 5/24/18 11:12 AM (GMT-06:00)

To:

Subject: Re: [App_rpt-users] Root ssh

What version of the image?

  Did you set the root password?

  Did you enable root login in /etc/ssh/sshd_config?

szingman@msgstor.comapp_rpt-users@lists.allstarlink.org
On 5/24/2018 12:10 PM, David wrote:

    I can not ssh into root. I have changed ssh port number away

from 22 and 222. What am I missing? Doing this on a local
network.




_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users


_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

Have you actually set a password for user ‘root’ ?

…mike/kb8jnm

···

On 5/24/2018 1:12 PM, David wrote:

  I tried PermitRootLogin yes and systemctl restart ssh. Same

result.

    I can not log into repeater via ssh either. I can only login

via a user I setup.

    Root and repeater work off of plugged in keyboard and

monitor.

This is what I get if I try sudo from any account:

    /etc/sudoers.d/010_-nopasswd: syntax error near line

1<<<

    Sudo: parse error in /etc/sudoers.d/010_-nopassword near line

1

Sudo: no valid sudoers sources found. Quitting

Sudo: unable to initialize policy plugin

Thanks David

-------- Original message --------

From: Steve Zingman

Date: 5/24/18 11:45 AM (GMT-06:00)

To:

Subject: Re: [App_rpt-users] Root ssh

  As K4SQI said, you can ssh in as reepater and do a "sudo -s" and

you will have root privileges.

  To enable root login via ssh:

  PermitRootLogin yes

  systemctl restart ssh



  BE CAREFUL!



  73, Steve N4IRS

szingman@msgstor.comapp_rpt-users@lists.allstarlink.org
On 5/24/2018 12:42 PM, David wrote:

        Version

asl_1.01-20180228-armhf-raspbian-stretch and updated it in
asl-menu.

      Yes, root password works off of plugin monitor and

keyboard.

No sure tried removing prohibit-password. But put it back:

#PermitRootLogin prohibit-password

Thanks David

-------- Original message --------

From: Steve Zingman

Date: 5/24/18 11:12 AM (GMT-06:00)

To:

Subject: Re: [App_rpt-users] Root ssh

What version of the image?

    Did you set the root password?

    Did you enable root login in /etc/ssh/sshd_config?

szingman@msgstor.comapp_rpt-users@lists.allstarlink.org
On 5/24/2018 12:10 PM, David wrote:

      I can not ssh into root. I have changed ssh port number away

from 22 and 222. What am I missing? Doing this on a local
network.




_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users


_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users


_______________________________________________
App_rpt-users mailing list
To unsubscribe from this list please visit and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

App_rpt-users@lists.allstarlink.orghttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-usershttp://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users

Im sorry but all this talk seems to imply one knows asterisk or linux language

how about simplifying for us that dont

I too can not modify my asl node I want to run a dmr bridge upon

seems the older crompton image was so much easier or Im just getting to old

Mike,

A few basics here about running and administrating a node based upon asterisk and the app_rpt (software) module which allows us to use our radios with asterisk. Firstly in order to put a node up and to keep it running a basic level of understanding and knowledge about the underlying system needs to be present by those maintaining said node. This is similar to it being a good idea that one knows a few things about a ladder and how to set it up before using it to climb onto a roof. Think of the roof as asterisk and the ladder (and structure holding up the roof) as linux. In supporting asterisk/app_rpt (the software application we use for allstar) one needs to have a basic level of knowledge and skill which should be assumed present in linux. If that is not present first, there is a good chance the roof will fall in (asterisk/app_rpt will crash and burn) with you being completely unable to do anything about it because the underlying structure (Linux) was not properly maintained. What is offered here is not a canned appliance solution that you never have to touch the insides of but instead a kit that requires some knowledge, and learning by most to assemble from its parts, lightly customize for its specific application (setting callsign, weather the radio needs +v or gnd to rx, various other basic configuration), and to keep it running.

If you are looking for a canned plug and play appliance solution that’s completely ready to run out of the box with no setup whatsoever this isn’t it. You’re going to have to get your hands dirty tweaking and wrenching on the inside a bit to get it setup and configured as need be. Learning the vocabulary of the technical topic you’re learning is a good first step. Google can help too with questions like what or who is root on Linux or similar questions. Google, do a bit of hunting on your own, then ask. Google “how to ask good questions esr” for good stuff there.

Now as to simplifying some terms here:

Firstly case matters on Unix/Linux. LS, Ls, lS, and ls are not the same command. (ls can be remembered as “list sub directory” it’s kinda like dir in dos. )

Root is the all powerful super user on Unix/Linux systems. You should generally use sudo instead to avoid making serious irrecoverable mistakes.

sudo is “Super User do”. It allows you to work as a normal user and only use the powers of root when absolutely needed.

ssh is “secure shell”. It is what you use to login remotely. (It does other related more advanced stuff too but I’ll leave that for later). ssh will generally give you a command prompt or “‘shell’ prompt”. Thus secure “shell”.

A”shell” is simply a command interpreter. It takes (generally) typed commands and interpret them into actions by the computer

As a bonus try the following in the terminal application on your pi which should be findable in the menu from the GUI (graphical user interface).

I’ll use “$” as the prompt character. Don’t type “$” as part of the command:

$man man
(q will exit)

$ls
$ls -l
$ls -lh
$man ls
(What do the “-l” and “-h” switches do?)
(again q exits)

$man less

$df
(Remember this as “disk full”)

$man df

$du
(Think of this as “disk usage”)
$man du
$cd /etc/asterisk
(cd can be remembered as change directory)
(Notice the prompt changed as the prompt will generally show where you are on the filesystem)
$man cd
$pwd
(Remember pwd as “print working directory “)
(Should return “/etc/asterisk”)
$ls
$ls -l
$ls -lh
$ls ~
(The tilde character is special and is a shorthand for your home directory. This will list the contents of your home directory)

Now using the ~ shortcut change back to your home directory.
$ cd ~

(Notice the change in prompt)

$ls /etc/asterisk
(Should look familiar you just listed the contents of the /etc/asterisk directory but you did so from a different place on the filesystem by specifying the path. )

This should get you going a bit. Ask away as to your questions. Most here are likely willing to help. Know though that this is mostly asterisk/app_rpt help and support. Linux support will be more limited

Eric
Af6ep

@Mike_P Looks like these WinSCP settings will do the trick for you.

thanks
made those changes & still no access

ok got it now, Thanks

just like asterisk needs to be reloaded or outright restarted after making changes to your sshd_config, restart SSH server. Perhaps you SSH login worked after you rebooted.

something like:
$ service sshd restart

you know with the older crompton image I had 6 nodes & a hub all running at one time
I helped maybe 100 others set up their nodes too
I know I havent played with allstar in a few years since it was all running perfectly
seems the new software throws me for a loop