The default configuration file for SSH on Ubuntu is located at /etc/ssh/sshd_config. It can be edited using a command-line text editor like Nano or Vim.