SlideShare a Scribd company logo
Git bash
Welcome to Git (version 1.9.5-preview20150319)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
anchal.chadha@BSSDT018 ~
$ pwd
/c/Users/anchal.chadha
anchal.chadha@BSSDT018 ~
$ mkdir .ssh
anchal.chadha@BSSDT018 ~
$ cd .ssh
anchal.chadha@BSSDT018 ~/.ssh
$ ssh-keygen -trsa -C"anchalchadha01@gmail.com"
Generating public/private rsa key pair.
Enter file in which to savethe key (/c/Users/anchal.chadha/.ssh/id_rsa):
Enter passphrase(empty for no passphrase):
Enter same passphraseagain:
Your identification has been saved in /c/Users/anchal.chadha/.ssh/id_rsa.
Your public key has been saved in /c/Users/anchal.chadha/.ssh/id_rsa.pub.
The key fingerprintis:
d3:5b:5b:1f:f7:cc:c4:8c:dc:e1:7b:e0:f6:0c:4d:15 anchalchadha01@gmail.com
The key's randomartimage is:
+--[ RSA 2048]----+
| E |
| .|
| ..|
| . ..=o|
| S . . =oB|
| . o + O=|
| . . +.B|
| . +.|
| o|
+-----------------+
anchal.chadha@BSSDT018 ~/.ssh
$ ssh -v git@github.com
OpenSSH_6.6.1, OpenSSL 1.0.1m19 Mar 2015
debug1: Connecting to github.com[192.30.252.131] port22.
debug1: Connection established.
debug1: identity file /c/Users/anchal.chadha/.ssh/id_rsa type1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_rsa-certtype-1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_dsa type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_dsa-certtype-1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_ecdsa-certtype-1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_ed25519-certtype-1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remotesoftwareversion libssh-0.6.0
debug1: no match: libssh-0.6.0
debug1: SSH2_MSG_KEXINITsent
debug1: SSH2_MSG_KEXINITreceived
debug1: kex: server->client aes128-ctr hmac-sha1none
debug1: kex: client->server aes128-ctr hmac-sha1none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server hostkey: RSA 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
The authenticity of host'github.com (192.30.252.131)'can'tbe established.
RSA key fingerprintis 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sureyou wantto continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.131'(RSA) to the list of
know
n hosts.
debug1: ssh_rsa_verify: signaturecorrect
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUESTsent
debug1: SSH2_MSG_SERVICE_ACCEPTreceived
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /c/Users/anchal.chadha/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_dsa
debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_ecdsa
debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).
anchal.chadha@BSSDT018 ~/.ssh
$ cd ..
anchal.chadha@BSSDT018 ~
$ cd ..
anchal.chadha@BSSDT018 /c/Users
$ cd..
sh.exe": cd..: command not found
anchal.chadha@BSSDT018 /c/Users
$ cd ..
anchal.chadha@BSSDT018 /c
$ cd C:anchalSanyamex2
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2
$ pwd
/c/anchal/Sanyam/ex2
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2
$ git init
Initialized empty Git repository in c:/anchal/Sanyam/ex2/.git/
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ Git add .
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ git commit -m"firstcommit"
[master (root-commit) fdfb91e] firstcommit
Committer: unknown <anchal.chadha@BSSDT018.betasoftsystems.com>
Your name and email address wereconfigured automatically based
on your usernameand hostname. Please check that they are accurate.
You can suppress this messageby setting them explicitly:
git config --global user.name"Your Name"
git config --global user.emailyou@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
5 files changed, 51 insertions(+)
create mode 100644 .classpath
create mode 100644 .project
create mode 100644 .settings/org.eclipse.jdt.core.prefs
create mode 100644 bin/ex2/testfile.class
create mode 100644 src/ex2/testfile.java
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ git remote add origin https://github.com/AnchalChadha/NewRep.git
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ git push -u origin master
Usernamefor 'https://github.com':
Password for 'https://github.com':
remote: Anonymous access to AnchalChadha/NewRep.git denied.
fatal: Authentication failed for
'https://github.com/AnchalChadha/NewRep.git/'
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ git push -u origin master
Usernamefor 'https://github.com': anchalchadha
Password for 'https://anchalchadha@github.com':
Counting objects: 12, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (8/8),done.
Writing objects: 100% (12/12), 1.95KiB| 0 bytes/s, done.
Total 12 (delta 0), reused 0 (delta 0)
To https://github.com/AnchalChadha/NewRep.git
* [new branch] master -> master
Branch master set up to track remote branch master fromorigin.
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$
Git bucketGit bash
Git bucketGit bash
Git bucketGit bash
Git bucketGit bash
Git bucketGit bash
Cmd
Git bucketGit bash

More Related Content

PDF
Linux system admin
PDF
Getting started with the Terminal
PDF
Hack the box open admin writeup
PDF
Tomáš Čorej - OpenSSH
PDF
RG講義_SSH
PDF
ssh_tricks
PDF
R57php 1231677414471772-2
PDF
Software Dendrology by Brandon Bloom
Linux system admin
Getting started with the Terminal
Hack the box open admin writeup
Tomáš Čorej - OpenSSH
RG講義_SSH
ssh_tricks
R57php 1231677414471772-2
Software Dendrology by Brandon Bloom

What's hot (13)

PDF
Workshop on command line tools - day 1
PDF
Workshop on command line tools - day 2
PDF
00-Review of Linux Basics
PDF
Dicas de SSH
PDF
Using the Command Line with Magento
PDF
PHP Backdoor: The rise of the vuln
PDF
Code obfuscation, php shells & more
PDF
How to add user in system without useradd command
DOCX
lec2.docx
PPTX
Creating a keystroke logger in unix shell scripting
PPTX
Git 201 - A Deeper Look at Git @ KCDC 2016
PDF
Php web backdoor obfuscation
Workshop on command line tools - day 1
Workshop on command line tools - day 2
00-Review of Linux Basics
Dicas de SSH
Using the Command Line with Magento
PHP Backdoor: The rise of the vuln
Code obfuscation, php shells & more
How to add user in system without useradd command
lec2.docx
Creating a keystroke logger in unix shell scripting
Git 201 - A Deeper Look at Git @ KCDC 2016
Php web backdoor obfuscation
Ad

Viewers also liked (11)

DOCX
Git bucketGit bash
DOCX
Git bashGit bucket
PDF
Ssc newsletter october
ODP
Top 7 de series infantiles
PDF
Newsletter october
PDF
О важном
DOCX
ffdfdfdfGit bash
DOCX
Git bash
DOCX
Git bash
PDF
Ssc newsletter november december
PDF
Leopold bousquet las cadenas musculares. tomo iv miembros inferiores 1998
Git bucketGit bash
Git bashGit bucket
Ssc newsletter october
Top 7 de series infantiles
Newsletter october
О важном
ffdfdfdfGit bash
Git bash
Git bash
Ssc newsletter november december
Leopold bousquet las cadenas musculares. tomo iv miembros inferiores 1998
Ad

Similar to Git bucketGit bash (20)

PPT
Setting up github and ssh keys.ppt
PDF
Github - Git Training Slides: Foundations
PDF
SSH how to 2011
PPTX
Git reposirory descritiopn use this for demo p
PDF
Git Workshop : Git On The Server
PDF
An introduction to SSH
PDF
Github add ssh key
PPTX
Setting up Git.pptx
PDF
Git Recipes 1st Edition Wodzimierz Gajda Auth
PDF
Gitlab Training with GIT and SourceTree
PDF
SSH.pdf
PPT
Introduction to SSH
PDF
Love The Terminal
PDF
How to increase security with SSH
KEY
The Git - (#1/2)
PDF
Windowshadoop
PDF
DEFCON 23 - john menerick - backdooring GIT
PPTX
A presentation on SSH (Secure Shell or Secure Socket Shell)
Setting up github and ssh keys.ppt
Github - Git Training Slides: Foundations
SSH how to 2011
Git reposirory descritiopn use this for demo p
Git Workshop : Git On The Server
An introduction to SSH
Github add ssh key
Setting up Git.pptx
Git Recipes 1st Edition Wodzimierz Gajda Auth
Gitlab Training with GIT and SourceTree
SSH.pdf
Introduction to SSH
Love The Terminal
How to increase security with SSH
The Git - (#1/2)
Windowshadoop
DEFCON 23 - john menerick - backdooring GIT
A presentation on SSH (Secure Shell or Secure Socket Shell)

Git bucketGit bash

  • 1. Git bash Welcome to Git (version 1.9.5-preview20150319) Run 'git help git' to display the help index. Run 'git help <command>' to display help for specific commands. anchal.chadha@BSSDT018 ~ $ pwd /c/Users/anchal.chadha anchal.chadha@BSSDT018 ~ $ mkdir .ssh anchal.chadha@BSSDT018 ~ $ cd .ssh anchal.chadha@BSSDT018 ~/.ssh $ ssh-keygen -trsa -C"anchalchadha01@gmail.com" Generating public/private rsa key pair. Enter file in which to savethe key (/c/Users/anchal.chadha/.ssh/id_rsa): Enter passphrase(empty for no passphrase): Enter same passphraseagain: Your identification has been saved in /c/Users/anchal.chadha/.ssh/id_rsa. Your public key has been saved in /c/Users/anchal.chadha/.ssh/id_rsa.pub. The key fingerprintis:
  • 2. d3:5b:5b:1f:f7:cc:c4:8c:dc:e1:7b:e0:f6:0c:4d:15 anchalchadha01@gmail.com The key's randomartimage is: +--[ RSA 2048]----+ | E | | .| | ..| | . ..=o| | S . . =oB| | . o + O=| | . . +.B| | . +.| | o| +-----------------+ anchal.chadha@BSSDT018 ~/.ssh $ ssh -v git@github.com OpenSSH_6.6.1, OpenSSL 1.0.1m19 Mar 2015 debug1: Connecting to github.com[192.30.252.131] port22. debug1: Connection established. debug1: identity file /c/Users/anchal.chadha/.ssh/id_rsa type1 debug1: identity file /c/Users/anchal.chadha/.ssh/id_rsa-certtype-1 debug1: identity file /c/Users/anchal.chadha/.ssh/id_dsa type -1 debug1: identity file /c/Users/anchal.chadha/.ssh/id_dsa-certtype-1 debug1: identity file /c/Users/anchal.chadha/.ssh/id_ecdsa type -1 debug1: identity file /c/Users/anchal.chadha/.ssh/id_ecdsa-certtype-1 debug1: identity file /c/Users/anchal.chadha/.ssh/id_ed25519 type -1
  • 3. debug1: identity file /c/Users/anchal.chadha/.ssh/id_ed25519-certtype-1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6.1 debug1: Remote protocol version 2.0, remotesoftwareversion libssh-0.6.0 debug1: no match: libssh-0.6.0 debug1: SSH2_MSG_KEXINITsent debug1: SSH2_MSG_KEXINITreceived debug1: kex: server->client aes128-ctr hmac-sha1none debug1: kex: client->server aes128-ctr hmac-sha1none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server hostkey: RSA 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 The authenticity of host'github.com (192.30.252.131)'can'tbe established. RSA key fingerprintis 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sureyou wantto continue connecting (yes/no)? yes Warning: Permanently added 'github.com,192.30.252.131'(RSA) to the list of know n hosts. debug1: ssh_rsa_verify: signaturecorrect debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUESTsent debug1: SSH2_MSG_SERVICE_ACCEPTreceived debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey
  • 4. debug1: Offering RSA public key: /c/Users/anchal.chadha/.ssh/id_rsa debug1: Authentications that can continue: publickey debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_dsa debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_ecdsa debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_ed25519 debug1: No more authentication methods to try. Permission denied (publickey). anchal.chadha@BSSDT018 ~/.ssh $ cd .. anchal.chadha@BSSDT018 ~ $ cd .. anchal.chadha@BSSDT018 /c/Users $ cd.. sh.exe": cd..: command not found anchal.chadha@BSSDT018 /c/Users $ cd .. anchal.chadha@BSSDT018 /c $ cd C:anchalSanyamex2 anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 $ pwd
  • 5. /c/anchal/Sanyam/ex2 anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 $ git init Initialized empty Git repository in c:/anchal/Sanyam/ex2/.git/ anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $ Git add . anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $ git commit -m"firstcommit" [master (root-commit) fdfb91e] firstcommit Committer: unknown <anchal.chadha@BSSDT018.betasoftsystems.com> Your name and email address wereconfigured automatically based on your usernameand hostname. Please check that they are accurate. You can suppress this messageby setting them explicitly: git config --global user.name"Your Name" git config --global user.emailyou@example.com After doing this, you may fix the identity used for this commit with: git commit --amend --reset-author 5 files changed, 51 insertions(+) create mode 100644 .classpath
  • 6. create mode 100644 .project create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 bin/ex2/testfile.class create mode 100644 src/ex2/testfile.java anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $ git remote add origin https://github.com/AnchalChadha/NewRep.git anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $ git push -u origin master Usernamefor 'https://github.com': Password for 'https://github.com': remote: Anonymous access to AnchalChadha/NewRep.git denied. fatal: Authentication failed for 'https://github.com/AnchalChadha/NewRep.git/' anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $ anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $ anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $ anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $ git push -u origin master
  • 7. Usernamefor 'https://github.com': anchalchadha Password for 'https://anchalchadha@github.com': Counting objects: 12, done. Delta compression using up to 2 threads. Compressing objects: 100% (8/8),done. Writing objects: 100% (12/12), 1.95KiB| 0 bytes/s, done. Total 12 (delta 0), reused 0 (delta 0) To https://github.com/AnchalChadha/NewRep.git * [new branch] master -> master Branch master set up to track remote branch master fromorigin. anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master) $
  • 13. Cmd