Difference between revisions of "How to perform ssh connection"

[quality revision] [quality revision]
m
 
m
 

Template:ArticleMainWriter Template:ArticleApprovedVersion

1 Purpose[edit]

This article describes how to perform remote connection using the ssh[1] tool.

1.1 Perform ssh connection[edit]

On host PC, one can type:

If it is a first connection:

 
 ssh root@10.48.1.172
 The authenticity of host '10.48.1.172 (10.48.1.172)' can't be established.
 ECDSA key fingerprint is a0:a2:a3:09:b4:99:b3:90:6a:d0:35:05:6e:37:d0:6e.
 Are you sure you want to continue connecting (yes/no)? yes
 Warning: Permanently added '10.48.1.172' (ECDSA) to the list of known hosts.
 root@(none):~# 

Otherwise:

 
ssh root@10.48.1.172
 root@(none):~# 

If the below error message is showing, it means that sshd is not running on the target:

ssh root@10.48.1.172 ssh: connect to host 10.48.1.172 port 22: Connection refused
On stm32mp1, one can type:
mkdir /var/run/sshd /etc/init.d/sshd restart
In the console, the following log should appear:
mkdir /var/run/sshd /etc/init.d/sshd restart generating ssh RSA key... generating ssh ECDSA key... generating ssh DSA key... generating ssh ED25519 key... Restarting OpenBSD Secure Shell server: sshdno /usr/sbin/sshd found; none killed

2 References[edit]

  1. [1] ifconfig


<noinclude>

{{ArticleMainWriter | ChristopheR}}
{{ArticleApprovedVersion | ChristopheR | AlexandreT (Not Done), GeraldB (Not Done), BernardP (Not Done), LoicP (Not Done) | No previous approved version | BrunoB - 07Jan'19 - 10178 | 14Jan'19}}
[[Category:Ethernet]]</noinclude>

== Purpose ==
This article describes how to perform remote connection using the '''ssh'''<ref>[https://linux.die.net/man/8/ifconfig] ifconfig</ref> tool.

=== Perform ssh connection ===
::On host PC, one can type:
If it is a first connection:
  {{PC$}} ssh root@10.48.1.172
  The authenticity of host '10.48.1.172 (10.48.1.172)' can't be established.
  ECDSA key fingerprint is a0:a2:a3:09:b4:99:b3:90:6a:d0:35:05:6e:37:d0:6e.
  Are you sure you want to continue connecting (yes/no)? yes
  Warning: Permanently added '10.48.1.172' (ECDSA) to the list of known hosts.
  root@(none):~# 
Otherwise:
  {{PC$}}ssh root@10.48.1.172
  root@(none):~# 
If the below error message is showing, it means that sshd is not running on the target:
  {{PC$}}ssh root@10.48.1.172
  ssh: connect to host 10.48.1.172 port 22: Connection refused

::On stm32mp1, one can type:
  {{Board$}}mkdir /var/run/sshd
  {{Board$}}/etc/init.d/sshd restart
::In the console, the following log should appear:
  {{Board$}}mkdir /var/run/sshd
  {{Board$}}/etc/init.d/sshd restart
    generating ssh RSA key...
    generating ssh ECDSA key...
    generating ssh DSA key...
    generating ssh ED25519 key...
  Restarting OpenBSD Secure Shell server: sshdno /usr/sbin/sshd found; none killed

==References==<references />==References==<references />

<noinclude>

[[Category:Ethernet]]
{{PublicationRequestId | 10178 | 2019-01-07 | BrunoB}}</noinclude>
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
 
{{ArticleMainWriter | ChristopheR}}
 
{{ArticleApprovedVersion | ChristopheR | AlexandreT (Not Done), GeraldB (Not Done), BernardP (Not Done), LoicP (Not Done) | No previous approved version | BrunoB - 07Jan'19 - 10178 | 14Jan'19}}
 
[[Category:Ethernet]]
 
</noinclude>
 
 
 
== Purpose ==
 
== Purpose ==
 
This article describes how to perform remote connection using the '''ssh'''<ref>[https://linux.die.net/man/8/ifconfig] ifconfig</ref> tool.
 
This article describes how to perform remote connection using the '''ssh'''<ref>[https://linux.die.net/man/8/ifconfig] ifconfig</ref> tool.
Line 20: Line 14:
 
   {{PC$}}ssh root@10.48.1.172
 
   {{PC$}}ssh root@10.48.1.172
 
   root@(none):~#  
 
   root@(none):~#  
 
If the below error message is showing, it means that sshd is not running on the target:
 
  {{PC$}}ssh root@10.48.1.172
 
  ssh: connect to host 10.48.1.172 port 22: Connection refused
 
 
::On stm32mp1, one can type:
 
  {{Board$}}mkdir /var/run/sshd
 
  {{Board$}}/etc/init.d/sshd restart
 
::In the console, the following log should appear:
 
  {{Board$}}mkdir /var/run/sshd
 
  {{Board$}}/etc/init.d/sshd restart
 
    generating ssh RSA key...
 
    generating ssh ECDSA key...
 
    generating ssh DSA key...
 
    generating ssh ED25519 key...
 
  Restarting OpenBSD Secure Shell server: sshdno /usr/sbin/sshd found; none killed
 
   
 
==References==
 
==References==
 
<references />
 
<references />
  +
  +
<noinclude>
  +
[[Category:Ethernet]]
  +
{{PublicationRequestId | 10178 | 2019-01-07 | BrunoB}}
  +
</noinclude>