Nп/п : 66 из 92
 От   : Theo                                2:5075/128        27 июл 23 21:53:43
 К    : Bob Latham                                            27 июл 23 00:00:33
 Тема : Re: Nettle can`t SSH into RaspPi
----------------------------------------------------------------------------------
                                                                                 
@MSGID: vzlmz@news.chiark.greenend.org.uk>
ce43da78
@REPLY: <5acaae0566bob@sick-of-spam.invalid>
5882b8dd
@REPLYADDR Theo
<theom+news@chiark.greenend.org.uk>
@REPLYTO 2:5075/128 Theo
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
vzlmz@news.chiark.greenend.org.uk>
@RFC-References: <5ac99d449fbob@sick-of-spam.invalid>
<2bb1bfc95a.BrianNews@brianhowlett.me.uk> LWdmz@news.chiark.greenend.org.uk> <5ac9f81ac4bob@sick-of-spam.invalid>
e6kmz@news.chiark.greenend.org.uk> <5acaae0566bob@sick-of-spam.invalid>
@TZUTC: 0100
@PID: tin/1.8.3-20070201 ("Scotasay") (UNIX)
(Linux/5.10.0-22-amd64 (x86_64))
@TID: FIDOGATE-5.12-ge4e8b94
Bob Latham <bob@sick-of-spam.invalid> wrote:
> I can indeed ssh into my pi with this latest build all be it with
> many lines of dots first. 

> Well done and thank you. Greatly appreciate what you`ve done.

That`s good.  I`ve made a pull request to the upstream repository (ie asked
them to accept my changes).

> One slight oddity though which is probably going to show my ignorance
> more than anything else.

> When you log in, is shows the usual default..
> pi@name:~$

> But it became clear very quickly that in fact it was at..
> pi@name:~/home/pi~$

~ is a shortcut for your home directory, eg /home/pi if you are the `pi`
user (the default on Pi OS)

~bob is a shortcut for the home directory of user bob, eg /home/bob

As an aside, the same goes for URLs, eg in:
https://www.chiark.greenend.org.uk/~theom/ephemeral/Nettle_0-2050b-1_arm.zip

~theom is the (web) home directory for user `theom`.

> I don`t think it`s possible to get above that into the root and then
> into boot or etc.

You can cd to change directory, ie:

cd /etc

As druck says, some places you can`t cd as a normal user, you need to use
`sudo`.  Or you can cd but you can`t edit any files.

> Why would it do that, putty.exe doesn`t?

Maybe Putty is doing a cd command for you?  I`m not sure why you would land
in a different place otherwise.

One other thing to note is the `pi@name:~$` is called your shell prompt, and
you can change it via an environment variable PS1:
https://wiki.archlinux.org/title/Bash/Prompt_customization

For example, I can type:
PS1="\\$(date) \\$(pwd) : "

and now the prompt looks like this, with the time and current directory
shown in full:

Thu 27 Jul 21:48:35 BST 2023 /home/pi : 
Thu 27 Jul 21:49:00 BST 2023 /home/pi : 
Thu 27 Jul 21:49:01 BST 2023 /home/pi : cd /
Thu 27 Jul 21:50:02 BST 2023 / : 

> I`m most grateful for you efforts but I don`t really understand what
> it`s doing.

If you need a place to ask for help on the Pi OS side, I can recommend the
newsgroup comp.sys.raspberry-pi

Theo
--- tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64))
 * Origin: University of Cambridge, England (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх