Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theassyrian/56b48afdbfd1ac1ba173c350bca1dc5c to your computer and use it in GitHub Desktop.
Save theassyrian/56b48afdbfd1ac1ba173c350bca1dc5c to your computer and use it in GitHub Desktop.
Configuration of a Cisco 1841 in PacketTracer, for SSH
Continue with configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa 0/1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#exit
Router(config)#hostname R1
R1(config)#ip domain-name example.com
R1(config)#crypto key generate rsa
The name for the keys will be: R1.example.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]:
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]
R1(config)#username marios password 1234
R1(config)#line vty 0 15
R1(config-line)#transport input ssh
R1(config-line)#login local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment