bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Login to a remote machine.


From: Ayoub Misherghi
Subject: Login to a remote machine.
Date: Sat, 9 Apr 2022 17:14:11 -0700
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

   Hi,
     Below I show two ways I ssh logged into a machine.
    In the first method I referred to the remote machine
    as 192.168.0.212 while in the second method I referred to the
    remote machine as [1]testuser5@192.168.0.212 specifying the user.
    In the first method it logged me in as user ayoub when the
    .ssh directory of ayoub does not have the file for the key
    specified with the -i parameter option. With the second method
   it logged me in as the testuser5 user; as expected.
   Some information about the bash version and the Linux version
   is right at the bottom.
   Thanks,
     Ayoub
   =======================================================================
   ==
   login one:
   ayoub@VBox:~$ ssh -i id_ed25519_testuser5 192.168.0.212
   Welcome to Ubuntu 21.10 (GNU/Linux 5.13.0-39-generic x86_64)
    * Documentation:  [2]https://help.ubuntu.com
    * Management:     [3]https://landscape.canonical.com
    * Support:        [4]https://ubuntu.com/advantage
     System information as of Sat Apr  9 11:08:36 PM UTC 2022
     System load:  0.08               Temperature:              67.0 C
     Usage of /:   1.1% of 686.60GB   Processes:                139
     Memory usage: 3%                 Users logged in:          1
     Swap usage:   0%                 IPv4 address for enp14s0:
   192.168.0.212
    * Super-optimized for small spaces - read how we shrank the memory
      footprint of MicroK8s to make it the smallest full K8s around.
      [5]https://ubuntu.com/blog/microk8s-memory-optimisation
   0 updates can be applied immediately.
   Last login: Sat Apr  9 22:05:23 2022 from 192.168.0.177
   ayoub@sony-srvr:~$ exit
   logout
   Connection to 192.168.0.212 closed.
   =======================================================================
   ==
   login two:
   ayoub@VBox:~$ ssh -i id_ed25519_testuser5 [6]testuser5@192.168.0.212
   Welcome to Ubuntu 21.10 (GNU/Linux 5.13.0-39-generic x86_64)
    * Documentation:  [7]https://help.ubuntu.com
    * Management:     [8]https://landscape.canonical.com
    * Support:        [9]https://ubuntu.com/advantage
     System information as of Sat Apr  9 11:10:19 PM UTC 2022
     System load:  0.14               Temperature:              67.0 C
     Usage of /:   1.1% of 686.60GB   Processes:                144
     Memory usage: 3%                 Users logged in:          1
     Swap usage:   0%                 IPv4 address for enp14s0:
   192.168.0.212
    * Super-optimized for small spaces - read how we shrank the memory
      footprint of MicroK8s to make it the smallest full K8s around.
      [10]https://ubuntu.com/blog/microk8s-memory-optimisation
   0 updates can be applied immediately.
   The programs included with the Ubuntu system are free software;
   the exact distribution terms for each program are described in the
   individual files in /usr/share/doc/*/copyright.
   Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
   applicable law.
   testuser5@sony-srvr:~$ exit
   logout
   Connection to 192.168.0.212 closed.
   ayoub@VBox:~$
   =======================================================================
   ==
   ayoub@VBox:~$ uname -a
   Linux VBox 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC
   2022 x86_64 x86_64 x86_64 GNU/Linux
   =======================================================================
   ==
   ayoub@VBox:~$ bash --version
   GNU bash, version 5.1.8(1)-release (x86_64-pc-linux-gnu)
   Copyright (C) 2020 Free Software Foundation, Inc.
   License GPLv3+: GNU GPL version 3 or later
   [11]<http://gnu.org/licenses/gpl.html>
   This is free software; you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.
   ayoub@VBox:~$

   =======================================================================
   ==

   ayoub@VBox:~$ ssh -V
   OpenSSH_8.4p1 Ubuntu-6ubuntu2.1, OpenSSL 1.1.1l  24 Aug 2021
   ayoub@VBox:~$

   =======================================================================
   ==
   The remote server had the same versions of bash, ssh and Ubuntu Linux.
   Locally, I was running

   Linux as a virtual machine in VirtualBox on a Windows10 host.

References

   1. mailto:testuser5@192.168.0.212
   2. https://help.ubuntu.com/
   3. https://landscape.canonical.com/
   4. https://ubuntu.com/advantage
   5. https://ubuntu.com/blog/microk8s-memory-optimisation
   6. mailto:testuser5@192.168.0.212
   7. https://help.ubuntu.com/
   8. https://landscape.canonical.com/
   9. https://ubuntu.com/advantage
  10. https://ubuntu.com/blog/microk8s-memory-optimisation
  11. http://gnu.org/licenses/gpl.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]