User Tools

Site Tools


computing:linux:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:linux:ssh [2012/03/07 16:23]
gcooper
computing:linux:ssh [2018/01/15 11:57] (current)
gcooper
Line 1: Line 1:
 ====== SSH ====== ====== SSH ======
  
-===== Set Up SSH Keys ===== +See also **[[computing:linux:ssh_keys|Set Up SSH Keys]]**
- +
-See [[computing:linux:ssh_keys|Set Up SSH Keys]].+
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
 +
 +Verbose:
  
 <file> <file>
 ssh -v ... ssh -v ...
 +</file>
 +
 +Modify the MTU on your remote workstation PC to eliminate fragmentation (MTU mismatch):
 +
 +<file>
 +ifconfig eth0 mtu 576
 </file> </file>
  
Line 28: Line 34:
  
 <file> <file>
-chmod 600 /home/gcooper/.ssh/config+chmod 600 /home/username/.ssh/config 
 +</file> 
 + 
 +==== Unknown Terminal Type ==== 
 + 
 +If you get an error message "unknown terminal type", you can try specifying a different terminal like this: 
 + 
 +<file> 
 +TERM=xterm-color ssh -l username remote.host.name
 </file> </file>
  
Line 41: Line 55:
  
 service sshd restart service sshd restart
 +</file>
 +
 +==== Additional for EL7 ====
 +
 +Install ''semanage'' if it is not installed and allow ssh on your port:
 +
 +<file>
 +sudo yum install policycoreutils-python
 +
 +semanage port -a -t ssh_port_t -p tcp 2222
 </file> </file>
  
Line 72: Line 96:
 or if SSH is listening on a non-standard port: or if SSH is listening on a non-standard port:
  
 +<file>
 ssh -R 22222:localhost:22 root@middleman -p 2222 ssh -R 22222:localhost:22 root@middleman -p 2222
 +</file>
  
 From your workstation, connect through the middle-man PC: From your workstation, connect through the middle-man PC:
  
 +<file>
 ssh -p 22222 root@middleman ssh -p 22222 root@middleman
 +</file>
  
 ===== AutoSSH ===== ===== AutoSSH =====
computing/linux/ssh.1331162623.txt.gz · Last modified: 2012/03/07 16:23 by gcooper