Skip to main content

There is a sentence in the post below.
Difference between Login Shell and Non-Login Shell?

The focus is here:
Another way to get a non-interactive login shell is to log in remotely with a command passed through standard input which is not a terminal, e.g.
ssh example.com <my-script-which-is-stored-locally (as opposed to ssh example.com my-script-which-is-on-the-remote-machine, which runs a non-interactive, non-login shell).

The author arrivearrives at two conclusions from the desciptiondescription above.

  1. non-interactive login shell

     ssh example.com <my-script-which-is-stored-locally 
  2. non-interactive, non-login shell

     ssh example.com my-script-which-is-on-the-remote-machine 

I don't think the second conlusionconclusion is right.
When to execute ssh example.com my-script-which-is-on-the-remote-machine,account account name and password still be asked to input locally.
It is still a non-interactive login shell!

login shell: A login shell logs you into the system as a spiecifiedspecified user, necessary for this is a username and password
According to the web description on login shell

For the non-interactive non-login shell, give an example here:some some daemon such as mysqld or apache2  ,all all of them are non-interactive non-login shellshells.

It is your turn  :true true or false?

There is a sentence in the post below.
Difference between Login Shell and Non-Login Shell?

The focus is here:
Another way to get a non-interactive login shell is to log in remotely with a command passed through standard input which is not a terminal, e.g.
ssh example.com <my-script-which-is-stored-locally (as opposed to ssh example.com my-script-which-is-on-the-remote-machine, which runs a non-interactive, non-login shell).

The author arrive at two conclusions from the desciption above.

  1. non-interactive login shell

     ssh example.com <my-script-which-is-stored-locally 
  2. non-interactive, non-login shell

     ssh example.com my-script-which-is-on-the-remote-machine 

I don't think the second conlusion is right.
When to execute ssh example.com my-script-which-is-on-the-remote-machine,account name and password still be asked to input locally.
It is still a non-interactive login shell!

login shell: A login shell logs you into the system as a spiecified user, necessary for this is a username and password
According to the web description on login shell

For non-interactive non-login shell, give an example here:some daemon such as mysqld or apache2  ,all of them are non-interactive non-login shell.

It is your turn  :true or false?

There is a sentence in the post below.
Difference between Login Shell and Non-Login Shell?

The focus is here:
Another way to get a non-interactive login shell is to log in remotely with a command passed through standard input which is not a terminal, e.g.
ssh example.com <my-script-which-is-stored-locally (as opposed to ssh example.com my-script-which-is-on-the-remote-machine, which runs a non-interactive, non-login shell).

The author arrives at two conclusions from the description above.

  1. non-interactive login shell

     ssh example.com <my-script-which-is-stored-locally 
  2. non-interactive, non-login shell

     ssh example.com my-script-which-is-on-the-remote-machine 

I don't think the second conclusion is right.
When to execute ssh example.com my-script-which-is-on-the-remote-machine, account name and password still be asked to input locally.
It is still a non-interactive login shell!

login shell: A login shell logs you into the system as a specified user, necessary for this is a username and password
According to the web description on login shell

For the non-interactive non-login shell, give an example here: some daemon such as mysqld or apache2, all of them are non-interactive non-login shells.

It is your turn: true or false?

Bumped by Community user
Bumped by Community user
Bumped by Community user
added 24 characters in body
Source Link
Jakuje
  • 21.9k
  • 7
  • 56
  • 74

There is a sentence in the post below.
Difference between Login Shell and Non-Login Shell?

The focus is here:
Another way to get a non-interactive login shell is to log in remotely with a command passed through standard input which is not a terminal, e.g.
ssh example.com <my-script-which-is-stored-locally (as opposed to ssh example.com my-script-which-is-on-the-remote-machine, which runs a non-interactive, non-login shell).

The author arrive at two conclusions from the desciption above.

1.non-interactive login shell
ssh example.com <my-script-which-is-stored-locally
2.non-interactive, non-login shell
ssh example.com my-script-which-is-on-the-remote-machine

  1. non-interactive login shell

     ssh example.com <my-script-which-is-stored-locally 
  2. non-interactive, non-login shell

     ssh example.com my-script-which-is-on-the-remote-machine 

I don't think the second conlusion is right.
When to execute ssh example.com my-script-which-is-on-the-remote-machine,account name and password still be asked to input locally.
It is still a non-interactive login shell!

login shell: A login shell logs you into the system as a spiecified user, necessary for this is a username and password
According to the web description on login shell

For non-interactive non-login shell, give an example here:some daemon such as mysqld or apache2 ,all of them are non-interactive non-login shell.

It is your turn :true or false?

There is a sentence in the post below.
Difference between Login Shell and Non-Login Shell?

The focus is here:
Another way to get a non-interactive login shell is to log in remotely with a command passed through standard input which is not a terminal, e.g.
ssh example.com <my-script-which-is-stored-locally (as opposed to ssh example.com my-script-which-is-on-the-remote-machine, which runs a non-interactive, non-login shell).

The author arrive at two conclusions from the desciption above.

1.non-interactive login shell
ssh example.com <my-script-which-is-stored-locally
2.non-interactive, non-login shell
ssh example.com my-script-which-is-on-the-remote-machine

I don't think the second conlusion is right.
When to execute ssh example.com my-script-which-is-on-the-remote-machine,account name and password still be asked to input locally.
It is still a non-interactive login shell!

login shell: A login shell logs you into the system as a spiecified user, necessary for this is a username and password
According to the web description on login shell

For non-interactive non-login shell, give an example here:some daemon such as mysqld or apache2 ,all of them are non-interactive non-login shell.

It is your turn :true or false?

There is a sentence in the post below.
Difference between Login Shell and Non-Login Shell?

The focus is here:
Another way to get a non-interactive login shell is to log in remotely with a command passed through standard input which is not a terminal, e.g.
ssh example.com <my-script-which-is-stored-locally (as opposed to ssh example.com my-script-which-is-on-the-remote-machine, which runs a non-interactive, non-login shell).

The author arrive at two conclusions from the desciption above.

  1. non-interactive login shell

     ssh example.com <my-script-which-is-stored-locally 
  2. non-interactive, non-login shell

     ssh example.com my-script-which-is-on-the-remote-machine 

I don't think the second conlusion is right.
When to execute ssh example.com my-script-which-is-on-the-remote-machine,account name and password still be asked to input locally.
It is still a non-interactive login shell!

login shell: A login shell logs you into the system as a spiecified user, necessary for this is a username and password
According to the web description on login shell

For non-interactive non-login shell, give an example here:some daemon such as mysqld or apache2 ,all of them are non-interactive non-login shell.

It is your turn :true or false?

Source Link
showkey
  • 611
  • 27
  • 78
  • 151

ssh command and non-interactive, non-login shell

There is a sentence in the post below.
Difference between Login Shell and Non-Login Shell?

The focus is here:
Another way to get a non-interactive login shell is to log in remotely with a command passed through standard input which is not a terminal, e.g.
ssh example.com <my-script-which-is-stored-locally (as opposed to ssh example.com my-script-which-is-on-the-remote-machine, which runs a non-interactive, non-login shell).

The author arrive at two conclusions from the desciption above.

1.non-interactive login shell
ssh example.com <my-script-which-is-stored-locally
2.non-interactive, non-login shell
ssh example.com my-script-which-is-on-the-remote-machine

I don't think the second conlusion is right.
When to execute ssh example.com my-script-which-is-on-the-remote-machine,account name and password still be asked to input locally.
It is still a non-interactive login shell!

login shell: A login shell logs you into the system as a spiecified user, necessary for this is a username and password
According to the web description on login shell

For non-interactive non-login shell, give an example here:some daemon such as mysqld or apache2 ,all of them are non-interactive non-login shell.

It is your turn :true or false?