Saturday, February 5, 2022

Create Table Statement and Constraints Assignment

Table Creation and Data insertion:
Create following Tables with required constraints (as mentioned) using SQL DDL. 

Table: Student

sid
(int)
Primary Key
sname
Varying Char (10)
sbranch
Char(5)
sage
(int)
(not greater than 25)
1001 Kamal IT 18
1004 Yogesh IT 17
1011 Mani
CSE
20
1022
Farooq
EEE
21
1027
Girija
CSE
24
1030
Mousmi
CSE
22
1036
Rajanish
EEE
21
1052
Praneet
EEE
21
1059
Joseph
CSE 17
1063 Lahiri IT 21

Table: Course

cid
(int) PK
Cname
(chars 4 and unique)
units
(int)
10 OS 3
20 DBMS 4
30 CNW 5
40 PHY 3

Table: StudentCourse

stid
PK1 and FK to sid of student
cno
PK2 and FK to cid of course
1001 20
1001 30
1004 10
1004
20
1004
30
1004
40
1027
20
1027
30
1036 10
1036 30
1036 20
1059 10
1063 20

Solution

DDL: Data Definition Language

- create - alter - drop

DML: Data Manipulation Language

- select - insert - update - delete

Microsoft SQL Server

How to add a "Check Constraint" on a column:

CREATE TABLE CountryList ( Id INT IDENTITY PRIMARY KEY, CountryName VARCHAR(255) NOT NULL, CountryPopulation INT CHECK(CountryPopulation > 0) ) ALTER TABLE student ADD CONSTRAINT CheckSage CHECK (sage > 25);

Adding a "Foreign Key"

CREATE TABLE Orders ( OrderID int NOT NULL, OrderNumber int NOT NULL, PersonID int, PRIMARY KEY (OrderID), FOREIGN KEY (PersonID) REFERENCES Persons(PersonID) );

Creating a 'Composite Primary Key'

Create table StudentCourse ( stid integer FOREIGN Key REFERENCES Student (sid) , cno integer Foreign Key References Course (cid), PRIMARY KEY (stid, cno) );

A mistake that students make...

Create table StudentCourse ( stid integer Primary Key FOREIGN Key REFERENCES Student (sid), cno integer PRIMARY key Foreign Key References Course (cid) ); Msg 8110, Level 16, State 0, Line 1 Cannot add multiple PRIMARY KEY constraints to table 'StudentCourse'.

Oracle DB

SQL> create table student_ashish_12345 (sid int primary key, sname varchar2(10), sbranch char(5), sage int constraint stud_sage_ck check (sage <= 25)); SQL> create table course_ashish_12345 (cid int primary key, cname char(4) unique, units int); SQL> create table studentcourse_ashish_12345 (stid int, cno int, constraint sc_pk primary key(stid, cno), constraint sc_fk1 foreign key (stid) references bits_student (sid), constraint sc_fk2 foreign key (cno) references bits_course (cid)); SQL> select table_name from tabs where table_name like '%ASHISH_12345';
Tags: Database,Technology,

Stock Tips 2022-Feb-05



Apollo Hospitals - One Day

Apollo Hospitals - Past 5 years

Apollo Hospitals - All Time

Asian Paints - 1 Day

HDFC AMC - All Time

Nifty50 - All Time

Tags: Investment,

Installing PostGRE Database on Windows 10



Tags: Database,FOSS,Technology,

Thursday, February 3, 2022

Stock Market Lesson (Stock Averaging)

Stock Averaging

You buy 10 stocks for 100 Rs on Day 1. Price of stock is 10 Rs. 10 Days later lets say, stock price comes down to 8 INR and you buy 10 more stocks. The price of stock today is 8 Rs. Total number of shares with you is 20. For a price of: (10 + 8) * 10 Then average 'Stock Price' for your stock for you is: 9 Rs Now, let's us, you buy 10 stocks for 100 Rs. For Rs 10 per share. 10 days later, stock price rises to 15 INR. You buy 10 more shares for Rs 15 per share. Total number of shares with is now 20. Then average 'Stock Price' for your stock is: 12.5 INR

% If your stock is going up, you have to keep averaging it.
% Always average your Winners. Never average your Losers.

Other Tips

% When markets are volatile, it is hard to detect individual good or bad stocks. % When markets are going up, it is easier to go up with the tide but it is hard to justify why a particular low-profile stock has gone up or gone down. % You should always compare your stock with market benchmarks such as Nifty50 and Sensex. % Good stocks shoot up like anything when the market benchmarks are going up by like 1% (which is considered a high fluctuation for Nifty50 and Sensex).
Tags: Investment,

BODMAS (Test)



Set the pace of test:
Score:
Right:
Wrong:

Level:


To solve the problem, follow the way Google processes a BODMAS question, i.e., left to right.
Also, to simplify calculations, round off answer from division part to the lower integer.


Tags: Mathematical Foundations for Data Science,

Wednesday, February 2, 2022

Stock Tips (Week 1, Feb 2022) Part 1 of 7



TRACK THE FOLLOWING STOCKS FOR FOLLOWING SEVEN DAYS:

Balrampur Chini
CG Power
IDFC
Kajaria Ceremics
KEI
PRAJIND(USTRIES)
Suzlon
Thermax
Tags: Investment,

Andy Fisher (Chapter 1) 2022-Feb-2



Index of Journals
I had met him long time back (i.e. 2019) for a handshake but theoretically this was when we first time met.

My recollections of Andy Fisher are from the times when I met him in his lab, in the cafeteria on his floor, from the occasional lunch table meetings during weekdays and the occasional food court meetings during the weekends.

I was with Lakshay Sharma in the food court on that weekend in 2019 and Lakshay introduced me to Andy Fisher that afternoon.

Andy Fisher is a tall, handsome man in early 30s (in 2019), with height maybe 6ft or an inch more.

I used to visit the office food court to read books and prepare summaries on the weekends, and the second time when Andy and I met, it was one such day.

He showed concern as to what was I doing in office every weekend and I seemed to be working very hard and why I wasn't at home and where I lived, where did I come from, etc.

It was during this question answering that I learnt of few Train names from that run between Delhi and Chandigarh. To name a few, it was Una Jan Shatabdi, Kalka Shatabdi, Himalayan Queen, etc. Andy is a very knowledgeable man.

Otherwise who gets 'Out standing' rating seven years in a row.

If you want to understand and know how to sail through Infosys for 25 years or so then Amitabh Manu or Andy Fisher are the people you should reach out to.

Andy prefers to be called by his first name but he lets the young team members use the title 'sir' for him.

If you would talk to him, you would see that he talks in a friendly way and has some thought, some comment, some feedback, some opinion, some point of view, something to say about almost everything that I know.

To conclude I would say that I like him, I like him very much except that he doesn't pick my calls, and does not want me to meet his wife ever (same as Rohit Sud), ha ha!

"A man makes a mistake only once", he would say. Andy had once got in a situation when he and Lakshay Sharma were to be in his wife's presence. Later on Andy regrets that day to this day for something that Lakshay had said. 
Andy says it could be worse with me. Ha ha!

I'd tell you more about these folks as the time would come. Thank you for now! 
Tags: Journal,Psychology,Behavioral Science,Management,

Tuesday, February 1, 2022

BODMAS - Step by step working (Grade 6B)

Set the difficulty level:

To solve the problem, we are following the way Google processes our above question, i.e., left to right.
Also, to simplify calculations, we are rounding off answer from division part to the lower integer.


Tags: Mathematical Foundations for Data Science,

How many ones are there in a ten?

Question: How many ones are there in a '10' (ten)?

How many: (s) ...Are there in a ?

Tags: Mathematical Foundations for Data Science,

Debugging SSH Setup for two RHEL systems


ISSUE: SLAVE1 IS NOT ABLE TO CONNECT WITH SLAVE2 VIA SSH WITHOUT PASSWORD PROMPT.

IP AND HOSTNAME MAPPING:
  10.74.19.50 ​   MASTER
  10.138.22.103  SLAVE1
  10.85.62.107   SLAVE2

COMMANDS FOR DOING SSH SETUP:

  1) sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
  2) sudo reboot
  3) ssh-keygen -t rsa -f ~/.ssh/id_rsa -P ""
  4) ssh-copy-id -i ~/.ssh/id_rsa.pub projadmin@SLAVE2
  5) ssh-copy-id -i ~/.ssh/id_rsa.pub admin@SLAVE1
  6) ssh-copy-id -i ~/.ssh/id_rsa.pub admin@MASTER

~~  ~~  ~~

Command "ssh-copy-id" is used to copy your SSH public key to remote server for password less authentication.

MESSAGE YOU GET WHEN SSH KEYS ARE ALREADY PRESENT ON THE REMOTE SYSTEM:

  (base) [projadmin@SLAVE2 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub admin@SLAVE1
    /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/projadmin/.ssh/id_rsa.pub"
    /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
    
    /usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
                    (if you think this is a mistake, you may want to use -f option)

~~  ~~  ~~

MESSAGE YOU GET WHEN SSH KEYS ARE COPIED ON THE REMOTE SYSTEM:

  (base) [admin@SLAVE1 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub projadmin@SLAVE2
    /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/admin/.ssh/id_rsa.pub"
    /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
    /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
    IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION.
    projadmin@SLAVE2's password:
    
    Number of key(s) added: 1
    
    Now try logging into the machine, with:   "ssh 'projadmin@SLAVE2'"
    and check to make sure that only the key(s) you wanted were added.

LOGIN ATTEMPT 1:
  (base) [admin@SLAVE1 ~]$ ssh 'projadmin@SLAVE2'
    The authenticity of host 'slave2 (10.85.62.107)' can't be established.
    ECDSA key fingerprint is SHA256:+BqTUw27qVUgqcYRErYL8nksgX4XX9cimu/sgk2IkRs.
    ECDSA key fingerprint is MD5:27:41:cd:39:f2:97:a9:29:6b:e8:8b:f3:e6:aa:cd:8e.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'slave2' (ECDSA) to the list of known hosts.
    IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION.
    projadmin@slave2's password:
    Last login: Fri May  1 11:56:39 2020 from SLAVE1
    W A R N I N G
    THIS IS A PRIVATE COMPUTING SYSTEM FOR USE ONLY BY AUTHORIZED USERS.
  (base) [projadmin@SLAVE2 ~]$

LOGIN ATTEMPT 2:
  
  (base) [admin@SLAVE1 ~]$ ssh 'projadmin@SLAVE2'
    IT IS AN OFFENSE TO CONTINUE WITHOUT PROPER AUTHORIZATION.
    projadmin@slave2's password:
    Last login: Fri May  1 12:01:02 2020 from SLAVE1
    W A R N I N G
    THIS IS A PRIVATE COMPUTING SYSTEM FOR USE ONLY BY AUTHORIZED USERS.
	
  (base) [projadmin@SLAVE2 ~]$

~~  ~~  ~~

SSH PUBLIC KEYS ARE STORED IN REMOTE SERVER'S FILE "~/.ssh/authorized_keys". NEXT, WE DISPLAY THAT:

  (base) [projadmin@SLAVE2 ~]$ cat ~/.ssh/authorized_keys
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAaG5d2wcXeVGQkTtiHr5EQD5nYPugU1upCAnsei8vuZ1LpoUdrCiFq0jkvnQCOa... admin@MASTER
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDckTRtXhW3JlQ/dgR3cEn70MGUNU29DT438ItypXh+BRnGTSuFayGLLb7XfgR4Fg... projadmin@SLAVE2
    ssh-rsa	AAAAB3NzaC1yc2EAAAADAQABAAABAQCb/WDdGt0abaEI9aTljhgtRYtzrjjAJu3+GK3wbmjFMTvvlb5729l4kcUwg3IeAv... admin@SLAVE1

NEXT, WE CHECK OUR PUBLIC KEY OF SLAVE1:
  (base) [admin@SLAVE1 ~]$ cat ~/.ssh/id_rsa.pub
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCb/WDdGt0abaEI9aTljhgtRYtzrjjAJu3+GK3wbmjFMTvvlb5729l4kcUwg3IeAv... admin@SLAVE1

~~  ~~  ~~

NEXT, WE CHECK SSH CONFIG ON SLAVE2:
  (base) [admin@SLAVE1 ~]$ cat ~/.ssh/config
    cat: /home/admin/.ssh/config: No such file or directory
  (base) [admin@SLAVE1 ~]$

  (base) [projadmin@SLAVE2 ~]$ ssh-agent
    SSH_AUTH_SOCK=/tmp/ssh-1ULxPy4vidVX/agent.5929; export SSH_AUTH_SOCK;
    SSH_AGENT_PID=5930; export SSH_AGENT_PID;
    echo Agent pid 5930;

NEXT, WE CHECK SSH CONFIG ON SLAVE2:
  (base) [projadmin@SLAVE2 .ssh]$ ls
    authorized_keys  id_rsa  id_rsa.pub  known_hosts
  
  (base) [projadmin@SLAVE2 .ssh]$ cat known_hosts
    SLAVE1,10.138.22.103 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTIt...rObCVOxrV5XaKARNHQA=
	slave1 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTIt...rbCVOxrV5XaKARNHQA=
    SLAVE2,10.85.62.107 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoY...Xg6hmPnlGbfIiVmVPNdU=
	slave2 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbm...ArObCVOxrV5XaKARNHQA=
    10.74.19.50 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYT...rObCVOxrV5XaKARNHQA=
    MASTER ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTIt...ArObCVOxrV5XaKARNHQA=
    master ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTI...hmPnlGbfIiVmVPNdU=
    localhost ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoY...mPnlGbfIiVmVPNdU=
      
CREATING 'CONFIG' FILE SINCE IT DOES NOT EXIST:
  (base) [projadmin@SLAVE2 .ssh]$ touch config
  (base) [projadmin@SLAVE2 .ssh]$ ls
    authorized_keys  config  id_rsa  id_rsa.pub  known_hosts
  (base) [projadmin@SLAVE2 .ssh]$ vi config
  (base) [projadmin@SLAVE2 .ssh]$ cat config
    Host *
      UseKeychain yes
      AddKeysToAgent yes
      IdentityFile ~/.ssh/id_rsa

  (base) [projadmin@SLAVE2 ~]$ ssh-add -A
    Could not open a connection to your authentication agent.
  (base) [projadmin@SLAVE2 ~]$

~~  ~~  ~~

  (base) [projadmin@SLAVE2 ~]$ eval `ssh-agent -s`
    Agent pid 5182

  (base) [projadmin@SLAVE2 ~]$ ssh-add -K ~/.ssh/id_rsa
    unknown option -- K
    usage: ssh-add [options] [file ...]
    Options:
      -l          List fingerprints of all identities.
      -E hash     Specify hash algorithm used for fingerprints.
      -L          List public key parameters of all identities.
      -k          Load only keys and not certificates.
      -c          Require confirmation to sign using identities
      -t life     Set lifetime (in seconds) when adding identities.
      -d          Delete identity.
      -D          Delete all identities.
      -x          Lock agent.
      -X          Unlock agent.
      -s pkcs11   Add keys from PKCS#11 provider.
      -e pkcs11   Remove keys provided by PKCS#11 provider. 
	  
  (base) [projadmin@SLAVE2 ~]$ ssh-add -k ~/.ssh/id_rsa
    Identity added: /home/projadmin/.ssh/id_rsa (/home/projadmin/.ssh/id_rsa)
    (base) [projadmin@SLAVE2 ~]$

  (base) [projadmin@SLAVE2 .ssh]$ eval `ssh-agent -s`
    Agent pid 5611
  (base) [projadmin@SLAVE2 .ssh]$ ssh-add ~/.ssh/id_rsa
    Identity added: /home/projadmin/.ssh/id_rsa (/home/projadmin/.ssh/id_rsa)
    
~~  ~~  ~~

LAST RESORT:

  Deleting the everything in the directory: projadmin@SLAVE2:/home/projadmin/.ssh
  Copying public key only again from slave1: (base) [admin@SLAVE1 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub projadmin@SLAVE2
  The issue still exists. Not able to SSH slave2 from slave1 without password prompt.

~~  ~~  ~~

STATUS: ISSUE UNRESOLVED

References:

1. SSH Setup: Remote machine still asking for password (Stackoverflow)
2. Copying SSH key to remote server

Tags: Technology,Linux,SSH

SSH Setup on Two Ubuntu Machines


USER: MANJU

1. manju@manju-desktop:~/Desktop$ sudo nano /etc/hostname [sudo] password for manju: manju@manju-desktop:~/Desktop$ cat /etc/hostname manju

2.

manju@manju:~/Desktop$ hostname manju manju@manju:~/Desktop$ sudo nano /etc/hosts [sudo] password for manju: manju@manju:~/Desktop$ cat /etc/hosts 192.168.1.103 manju 192.168.1.101 ashish manju@manju:~/Desktop$ sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT manju@manju:~/Desktop$ ssh-keygen -t rsa -f ~/.ssh/id_rsa -P "" Generating public/private rsa key pair. Created directory '/home/manju/.ssh'. Your identification has been saved in /home/manju/.ssh/id_rsa Your public key has been saved in /home/manju/.ssh/id_rsa.pub The key fingerprint is: SHA256:87t+....JyZl5NvSEYYvM manju@manju The key's randomart image is: +---[RSA 3072]----+ ... | ..+ | | .++ | +----[SHA256]-----+ manju@manju:~/Desktop$ ssh-copy-id -i ~/.ssh/id_rsa.pub ashish@ashish /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/manju/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: ERROR: ssh: connect to host ashish port 22: No route to host 3. manju@manju:~$ sudo apt-get install openssh-server manju@manju:~$ sudo reboot

4.

manju@manju:~$ ping 192.168.1.104 PING 192.168.1.104 (192.168.1.104) 56(84) bytes of data. 64 bytes from 192.168.1.104: icmp_seq=1 ttl=64 time=87.5 ms 64 bytes from 192.168.1.104: icmp_seq=2 ttl=64 time=3.47 ms ^C --- 192.168.1.104 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 3.466/45.488/87.510/42.022 ms manju@manju:~$ sudo nano /etc/hosts [sudo] password for manju: manju@manju:~$ ssh-copy-id -i ~/.ssh/id_rsa.pub ashish@ashish /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/manju/.ssh/id_rsa.pub" The authenticity of host 'ashish (192.168.1.104)' can't be established. ECDSA key fingerprint is SHA256:gSl4hdqrq8...WVRO0. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys ashish@ashish's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'ashish@ashish'" and check to make sure that only the key(s) you wanted were added. manju@manju:~$

USER: ASHISH

1. ashish@ashish-Vostro-1014:~/Desktop$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 ashish-Vostro-1014 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 2. ashish@ashish:~/Desktop$ cat /etc/hostname ashish ashish@ashish:~/Desktop$ hostname ashish ashish@ashish:~/Desktop$ ashish@ashish:~/Desktop$ ifconfig enp9s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 14:fe:b5:a2:4f:ec txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 203 bytes 17205 (17.2 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 203 bytes 17205 (17.2 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlp12s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 2401:4900:47fc:ff81:4d50:2f1b:8e0d:4ab3 prefixlen 64 scopeid 0x0<global> inet6 2401:4900:47fc:ff81:69fb:546c:eed4:ba63 prefixlen 64 scopeid 0x0<global> inet6 fe80::6e0:63ce:56e8:94bc prefixlen 64 scopeid 0x20<link> ether ec:55:f9:13:78:d3 txqueuelen 1000 (Ethernet) RX packets 93 bytes 19289 (19.2 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 182 bytes 29336 (29.3 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 3. ashish@ashish:~/Desktop$ sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT [sudo] password for ashish: ashish@ashish:~/Desktop$ ssh-keygen -t rsa -f ~/.ssh/id_rsa -P "" Generating public/private rsa key pair. /home/ashish/.ssh/id_rsa already exists. Overwrite (y/n)? y Your identification has been saved in /home/ashish/.ssh/id_rsa Your public key has been saved in /home/ashish/.ssh/id_rsa.pub The key fingerprint is: SHA256:WNJqmuUwAR/PGRaM...c68dg ashish@ashish The key's randomart image is: +---[RSA 3072]----+ ... | +.+=. | | o.o+.E | |oo.o**. | +----[SHA256]-----+ 4. ashish@ashish:~$ cat /etc/hosts 192.168.1.101 ashish 192.168.1.103 manju ashish@ashish:~$ ashish@ashish:~$ sudo reboot 5. ashish@ashish:~$ sudo apt-get install openssh-server 6. ashish@ashish:~$ ssh-copy-id -i ~/.ssh/id_rsa.pub manju@manju /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/ashish/.ssh/id_rsa.pub" The authenticity of host 'manju (192.168.1.103)' can't be established. ECDSA key fingerprint is SHA256:4lS4BWY6l7I0A2pQ6RiSB6PMskHiy1oNVPozB/6jkIc. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys manju@manju's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'manju@manju'" and check to make sure that only the key(s) you wanted were added. 7. ashish@ashish:~$ ssh manju@manju Welcome to Ubuntu 21.04 (GNU/Linux 5.11.0-49-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 65 updates can be applied immediately. To see these additional updates run: apt list --upgradable Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife New release '21.10' available. Run 'do-release-upgrade' to upgrade to it.
Tags: Technology,Linux,

Connect Windows Machine and Ubuntu Machine Over Airtel Hotspot


1:
2:
Logs: (base) C:\Users\Ashish Jain>ping 192.168.1.102 Pinging 192.168.1.102 with 32 bytes of data: Reply from 192.168.1.102: bytes=32 time=6ms TTL=64 Reply from 192.168.1.102: bytes=32 time=7ms TTL=64 Reply from 192.168.1.102: bytes=32 time=6ms TTL=64 Reply from 192.168.1.102: bytes=32 time=7ms TTL=64 Ping statistics for 192.168.1.102: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 6ms, Maximum = 7ms, Average = 6ms

3:

4:

5:

manju@manju-desktop:~/Desktop$ ping 192.168.1.103 PING 192.168.1.103 (192.168.1.103) 56(84) bytes of data. 64 bytes from 192.168.1.103: icmp_seq=110 ttl=128 time=3.71 ms 64 bytes from 192.168.1.103: icmp_seq=111 ttl=128 time=5.60 ms 64 bytes from 192.168.1.103: icmp_seq=112 ttl=128 time=5.98 ms 64 bytes from 192.168.1.103: icmp_seq=113 ttl=128 time=3.79 ms 64 bytes from 192.168.1.103: icmp_seq=114 ttl=128 time=4.48 ms 64 bytes from 192.168.1.103: icmp_seq=115 ttl=128 time=8.06 ms 64 bytes from 192.168.1.103: icmp_seq=116 ttl=128 time=10.5 ms 64 bytes from 192.168.1.103: icmp_seq=117 ttl=128 time=164 ms 64 bytes from 192.168.1.103: icmp_seq=118 ttl=128 time=5.08 ms 64 bytes from 192.168.1.103: icmp_seq=119 ttl=128 time=217 ms 64 bytes from 192.168.1.103: icmp_seq=120 ttl=128 time=30.9 ms 64 bytes from 192.168.1.103: icmp_seq=121 ttl=128 time=5.03 ms 64 bytes from 192.168.1.103: icmp_seq=122 ttl=128 time=217 ms 64 bytes from 192.168.1.103: icmp_seq=123 ttl=128 time=4.62 ms 64 bytes from 192.168.1.103: icmp_seq=124 ttl=128 time=11.9 ms 64 bytes from 192.168.1.103: icmp_seq=125 ttl=128 time=6.16 ms 64 bytes from 192.168.1.103: icmp_seq=126 ttl=128 time=5.97 ms 64 bytes from 192.168.1.103: icmp_seq=127 ttl=128 time=6.92 ms 64 bytes from 192.168.1.103: icmp_seq=128 ttl=128 time=9.06 ms 64 bytes from 192.168.1.103: icmp_seq=129 ttl=128 time=8.81 ms 64 bytes from 192.168.1.103: icmp_seq=130 ttl=128 time=165 ms 64 bytes from 192.168.1.103: icmp_seq=131 ttl=128 time=6.27 ms ^C --- 192.168.1.103 ping statistics --- 131 packets transmitted, 22 received, 83.2061% packet loss, time 132459ms rtt min/avg/max/mdev = 3.708/41.218/217.431/71.696 ms
Tags: Technology,Linux,