Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. ssh domain.com -vv
  2. OpenSSH_6.9p1 Ubuntu-2, OpenSSL 1.0.2d 9 Jul 2015
  3. debug1: Reading configuration data /etc/ssh/ssh_config
  4. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  5. debug2: ssh_connect: needpriv 0
  6. debug1: Connecting to domain.com [x.x.x.x] port 22.
  7. debug1: connect to address x.x.x.x port 22: Connection refused
  8. ssh: connect to host domain.com port 22: Connection refused
  9.  
  10. as expected, since I don't use default port.. let's try again:
  11.  
  12. ssh -p 9022 domain.com -vv
  13. OpenSSH_6.9p1 Ubuntu-2, OpenSSL 1.0.2d 9 Jul 2015
  14. debug1: Reading configuration data /etc/ssh/ssh_config
  15. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  16. debug2: ssh_connect: needpriv 0
  17. debug1: Connecting to domain.com [x.x.x.x] port 9022.
  18. debug1: connect to address x.x.x.x port 9022: Connection refused
  19. ssh: connect to host domain.com port 9022: Connection refused
  20.  
  21. my username on the current PC is different than the username on the other PC, so let's add that in the mix:
  22.  
  23. ssh -l username -p 9022 domain.com -vv
  24. OpenSSH_6.9p1 Ubuntu-2, OpenSSL 1.0.2d 9 Jul 2015
  25. debug1: Reading configuration data /etc/ssh/ssh_config
  26. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  27. debug2: ssh_connect: needpriv 0
  28. debug1: Connecting to domain.com [x.x.x.x] port 9022.
  29. debug1: connect to address x.x.x.x port 9022: Connection refused
  30. ssh: connect to host domain.com port 9022: Connection refused
  31.  
  32. ok, let's try adding the PC name too..:
  33.  
  34. ssh -l username -p 9022 pcname@pdomain.com -vv
  35. OpenSSH_6.9p1 Ubuntu-2, OpenSSL 1.0.2d 9 Jul 2015
  36. debug1: Reading configuration data /etc/ssh/ssh_config
  37. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  38. debug2: ssh_connect: needpriv 0
  39. debug1: Connecting to domain.com [x.x.x.x] port 9022.
  40. debug1: connect to address x.x.x.x port 9022: Connection refused
  41. ssh: connect to host domain.com port 9022: Connection refused
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement