Connect Putty in Ubuntu - UNIX Shell Scripting

Post Top Ad

Responsive Ads Here

Tuesday, December 15, 2015

Connect Putty in Ubuntu

1. Go to the terminal  clt+t

Need to install - installed OpenSSH Server

2. use command  - sudo apt-get update
3. use - command - sudo apt-get install openssh-server
or
4. use - command - sudo apt-get update;sudo apt-get install openssh-server
5.  Now find the IP address  in ubuntu
 command use - IFCONFIG

6. Make sure you should able to connect internet  in ubuntu.
7. settings should be like below:




8. Find the IP address using command - ifconfig
sachin@oracle:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:c9:45:4d
          inet6 addr: fe80::a00:27ff:fec9:454d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7011 (7.0 KB)  TX bytes:4117 (4.1 KB)

eth1      Link encap:Ethernet  HWaddr 08:00:27:94:5a:88
          inet addr:192.168.56.101  Bcast:192.168.56.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe94:5a88/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5661 (5.6 KB)  TX bytes:8946 (8.9 KB)

eth2      Link encap:Ethernet  HWaddr 08:00:27:5f:8c:bb
          inet6 addr: fe80::a00:27ff:fe5f:8cbb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:4117 (4.1 KB)

eth3      Link encap:Ethernet  HWaddr 08:00:27:4b:64:ea
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe4b:64ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1496 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1060 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1564378 (1.5 MB)  TX bytes:108019 (108.0 KB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:218 errors:0 dropped:0 overruns:0 frame:0
          TX packets:218 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:20739 (20.7 KB)  TX bytes:20739 (20.7 KB)

sachin@oracle:~$


here ip is 192.168.1.3

10. Open the putty :


11. at this screen you need to select no




12. login using login/pass in putty windows

13. Now its connected...



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

2nd Method :
=> first select the Ubuntu then go  settings menu then select here bridge adapter (see screenshot) .










=> Re-start the virtual machine  Ubuntu.
=> Go to terminal and use command - ifconfig and get the IP address to connect putty.



=> Next go to Putty and login as below :-






=> connection  established.







=>> login successfully.





 =================Thanks=====================================




No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here