On 4/18/23 14:30, Rich Shepard wrote:
> I'm setting up a laptop and configuring ssh on it so I can transfer files
> between it (hostname: caddis) and the desktop (hostname: salmo).
>
> When I tried 'ssh salmo' I was asked for my password on salmo. Entered that
> and was immediately returned to the shell prompt.
>
> Then I tried 'ssh -vv salmo' and was presented with a long list of data,
> ending with ssh asking me for my salmo password. Entered that and was
> immediately returned to the shell prompt.
>
> Since I cannot retain the screen display would the tee command copy the
> output to a file so I can see why my efforts are failing? Is there a better
> way for me to debug the failure to connect?
>
> Regards,
>
> Rich
>
Rich,

Are you sure you are not "connecting"?  Of course ssh will drop you to a
shell prompt...on the other PC!

You can set your prompt to display host name so you know where you are. 
In each PC home director I have a ~/.bashrc with

PS1="\u@\h: \W "
case `id -u` in
       0) PS1="${PS1}# ";;
       *) PS1="${PS1}$ ";;
esac

(This is actually in the default if no .bashrc is present, see /etc/profile)

Example of Xfce terminal ssh to my hobby server:

-----------
beowulf@gandalf: ~ $ ssh aragorn
(beowulf@aragorn) Password:
Last login: Tue Apr 18 16:44:39 2023 from 192.168.1.3
Linux 5.15.94.

A rolling stone gathers no moss.
         -- Publilius Syrus

beowulf@aragorn:~$
-----------

Now, if it just drops you silently back to the original prompt, sshd may
not be running:

Is /etc/rc.d/rc.sshd set to executable?

-Ed







Reply via email to