Checking the SSH Configuration and Testing the Connectivity

Python 3: Automating Your Job Tasks Superhero Level: Automate Network Tasks with Python 3
3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€92.16
List Price:  €129.04
You save:  €36.87
£78.95
List Price:  £110.53
You save:  £31.58
CA$136.82
List Price:  CA$191.55
You save:  CA$54.73
A$150.88
List Price:  A$211.24
You save:  A$60.35
S$134.99
List Price:  S$189
You save:  S$54
HK$780.84
List Price:  HK$1,093.20
You save:  HK$312.36
CHF 92.16
List Price:  CHF 129.04
You save:  CHF 36.87
NOK kr1,065.65
List Price:  NOK kr1,491.95
You save:  NOK kr426.30
DKK kr688.26
List Price:  DKK kr963.60
You save:  DKK kr275.33
NZ$163.32
List Price:  NZ$228.66
You save:  NZ$65.33
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳11,714.86
List Price:  ৳16,401.27
You save:  ৳4,686.41
₹8,305.04
List Price:  ₹11,627.39
You save:  ₹3,322.35
RM470.40
List Price:  RM658.58
You save:  RM188.18
₦146,115.27
List Price:  ₦204,567.22
You save:  ₦58,451.95
₨27,783.57
List Price:  ₨38,898.11
You save:  ₨11,114.54
฿3,658.80
List Price:  ฿5,122.47
You save:  ฿1,463.66
₺3,219.48
List Price:  ₺4,507.41
You save:  ₺1,287.92
B$516.66
List Price:  B$723.35
You save:  B$206.68
R1,841.76
List Price:  R2,578.54
You save:  R736.77
Лв180.52
List Price:  Лв252.74
You save:  Лв72.21
₩136,656.33
List Price:  ₩191,324.33
You save:  ₩54,668
₪366.73
List Price:  ₪513.44
You save:  ₪146.71
₱5,819.86
List Price:  ₱8,148.04
You save:  ₱2,328.18
¥15,692.92
List Price:  ¥21,970.72
You save:  ¥6,277.79
MX$1,669.81
List Price:  MX$2,337.80
You save:  MX$667.99
QR364.18
List Price:  QR509.87
You save:  QR145.68
P1,356.93
List Price:  P1,899.76
You save:  P542.82
KSh13,033.20
List Price:  KSh18,247
You save:  KSh5,213.80
E£4,712.01
List Price:  E£6,597.01
You save:  E£1,884.99
ብር5,738.47
List Price:  ብር8,034.09
You save:  ብር2,295.62
Kz84,827.41
List Price:  Kz118,761.77
You save:  Kz33,934.36
CLP$90,869.43
List Price:  CLP$127,220.83
You save:  CLP$36,351.40
CN¥710.97
List Price:  CN¥995.39
You save:  CN¥284.42
RD$5,881.38
List Price:  RD$8,234.17
You save:  RD$2,352.78
DA13,438.44
List Price:  DA18,814.36
You save:  DA5,375.91
FJ$226.74
List Price:  FJ$317.44
You save:  FJ$90.70
Q775.80
List Price:  Q1,086.15
You save:  Q310.35
GY$20,895.31
List Price:  GY$29,254.27
You save:  GY$8,358.96
ISK kr13,791.40
List Price:  ISK kr19,308.52
You save:  ISK kr5,517.11
DH996.21
List Price:  DH1,394.74
You save:  DH398.52
L1,771.78
List Price:  L2,480.57
You save:  L708.78
ден5,676.40
List Price:  ден7,947.19
You save:  ден2,270.78
MOP$803.71
List Price:  MOP$1,125.23
You save:  MOP$321.51
N$1,835.52
List Price:  N$2,569.81
You save:  N$734.28
C$3,675.86
List Price:  C$5,146.35
You save:  C$1,470.49
रु13,281.76
List Price:  रु18,594.99
You save:  रु5,313.23
S/373.37
List Price:  S/522.73
You save:  S/149.36
K388.13
List Price:  K543.39
You save:  K155.26
SAR375.02
List Price:  SAR525.04
You save:  SAR150.02
ZK2,665.60
List Price:  ZK3,731.94
You save:  ZK1,066.34
L458.57
List Price:  L642.02
You save:  L183.44
Kč2,271.01
List Price:  Kč3,179.50
You save:  Kč908.49
Ft35,372.15
List Price:  Ft49,522.43
You save:  Ft14,150.27
SEK kr1,086.34
List Price:  SEK kr1,520.92
You save:  SEK kr434.58
ARS$88,911.95
List Price:  ARS$124,480.29
You save:  ARS$35,568.34
Bs690.12
List Price:  Bs966.19
You save:  Bs276.07
COP$386,435.76
List Price:  COP$541,025.52
You save:  COP$154,589.76
₡51,204.17
List Price:  ₡71,687.89
You save:  ₡20,483.71
L2,468.08
List Price:  L3,455.41
You save:  L987.33
₲751,203.84
List Price:  ₲1,051,715.43
You save:  ₲300,511.59
$U3,849.38
List Price:  $U5,389.29
You save:  $U1,539.90
zł392.63
List Price:  zł549.70
You save:  zł157.07
Already have an account? Log In

Transcript

Okay, the last thing we should do in order to have a fully functional network environment, and before starting to build our Python application is to verify that SSH version two is enabled on each of our array stop switches. I have to mention that by default, SSH is already enabled on the Arista switches, but we should nevertheless test and check if this is indeed true. First of all, I'm going to enter the command line for each of these switches and change the hostname so we can better identify each of the switches so hostname or restart one and copy, run start hostname or restart to and copy run start, and the same for restart three and copy run start. Okay, since we're on our three let's also check show management as as Ah, and you can see that SSH is already enabled. This means that we can test the connectivity from our windows 10 host operating system to each of these devices.

So in order to do that, we should use an SSH client, and what better client to use then party. So go to Google and type in party bu TT y, and then go on the first link, you can download party here. And then for Windows Installer, just choose the 64 bit version, click on the MSI package right here, say file, and finally, open file. Click ok. Next, Next, let's add a shortcut on the desktop. Install and click Finish. Now let's go to the desktop and open party.

So for hostname or IP address, I'm going to enter the IP address of Arista one which is ten.ten.ten.to. Make sure you have SSH checked right here. And also So the default port of 22. Let's hit open login, admin and password Python. And you can see that we are currently logged in. We can go to enable mode, we can again show IP interface brief, and so on.

So we have a fully functional SSH connection to Arista one. Let's also check the same for a restart to an Arista three. So 10 dot 10 dot 10 dot three, open, click Yes, admin, and Python. And again, you can see that we are currently logged into Arista two. And finally, let's check the same for Arista. 310 dot 10 dot 10 dot four, open, hideous login as admin, and Python.

And it seems we're good to go. We have a fully functional network set up and SSH connectivity to each of the Arista, virtual machines. Great job. Starting with the next lecture, we are going to return to Python and start building up Network application. See you there.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.