Nano Ssh Config

ssh/config file in edit mode. CTRL+O followed by the enter key to save the file changes CTRL+X to close the Nano file editor; Reboot the sshd service using the following commands (I’m not sure which one works so let’s do all of them…) sudo service sshd restart sudo systemctl restart sshd; Try and reconnect to your Compute Engine instance using Putty (SSH) or Filezilla (SFTP). For example, if you want to enable the mouse in nano, uncomment the set mouse option. The commands at the bottom of the page are executed by holding down Ctrl on your keyboard followed by the letter listed. sudo chmod 700 ~/. The ssh client The ssh executable established secure-shell access from client to server. How to Create and Edit Files and Folders Using SSH Learn how to create new and modify existing files via SSH There are various ways you can create a new file using the SSH command line. Первоначальная настройка SSH в Debian7/8 и CentOS 7 Туторы, SSH, Debian, CentOS Краткий список задач которые я выполняю, да и многим следует при первой авторизации на только что купленном сервере или же VDS. To exit the nano editor, press Ctrl+X and then press ‘Y’ to exit the editor. Open the configuration file in the nano editor. sshd -t Reload the Configuration File. In this example […]. 04 sudo nano /etc/ssh/sshd_config change PermitRootLogin prohibit-password to PermitRootLogin yes sudo service ssh restart still permission denied. Both the global /etc/ssh/ssh_config and per-user ~/ssh/config have the same format. Once in a while i want to setup a new Raspberry Pi without the need to connect it to a display, keyboard or ethernet cable. git config --global core. It will let you conveniently edit text files on a web server via the command line when logged in using SSH. bashrc file in the nano editor using the following command: nano. SSH can forward a graphical application, or a port. To setup remote re-configuration of rigs / remote viewing using SSH and screen: PREP RIGS: On each rig you wish to ssh into ensure: SSH="YES" LOCALorREMOTE="REMOTE" in 1bash have your phone or a pencil and paper with you as you will also need the ip address of each rig: to find the ip: scroll to the read more ». sudo nano /etc/ssh/sshd_config. This particular tutorial will be focusing on the Raspbian operating system. I have tried using nano filename and also sudo nano filename and both times it will not let me save file. By default, SSH listens on port 22. The configuration file will open in the editor of your choice. At some point I wanted to edit directly some config files, and I thought to go and edit directly via the shared appdata folder in SMB, no luck, files there cannot b. There are various methods to accomplish this so we'll look at a few. txt isn't editable by the pi user. Use the following command to do that (you don’t need to understand this command yet–we’ll cover it later in the semester). The SSH Server is not started at this point, but will start if you run it from the SSH Server Control Panel, or when the computer is restarted. SSH into RancherOS. You can edit this configuration file from a Mac, from a Linux PC, or from within the Raspberry Pi itself. cd /etc/ssh. First, open up the ssh configuration file by running the following command: sudo nano /etc/ssh/sshd_config. It can be done using root or user with sudo rights. 2022) And press Ctrl +O and Ctrl +X in order to save and exit. The SSH configuration file is located in /etc/sshd/ directory, you have to edit the config file /etc/ssh/sshd_config. If the Jetson is attached to a monitor and keyboard, the user inputs the configuration from the Jetson keyboard. Purpose: This page describes how to give users access to ssh into a web server and how to configure the server to accept SSH connections. If you want to connect your Debian Desktop in LAN then you should enter the following command in terminal. Restart the SSH server (on Ubuntu, run sudo systemctl restart sshd). com 3 simple tricks to make learning recursion simple Recursion is a concept that can be made easier if you have an easy way to think about it, and what it is you’re actually doing. As it refers to 3rd party software or it had been created by a 3rd party, there might be changes we don't know about. Let’s get started. SSH remoting creates a PowerShell host process on the target computer as an SSH subsystem. Usually when you are remoting your server via SSH or Telnet, you are dealing with command interface and almost every configuration in your server needs a text file be edited, so one of the most useful tools everyone needs for server administration, configuration and maintenance is a text editor that works within command interface. If SSH were on port 666, the correct syntax would be: ssh [email protected] All this said, likely good to ensure your machine is running ntpd to keep your system clock in sync with the rest of the world. The SSH configuration file on your Unix system controls how secure shell operates. If you are just now joining in on this series, the first article can be found here. Make your changes, then ctrl+x to save. When you're ready to exit nano, hold Ctrl + X and you will be exited from the application. Do not pick a port number that is in use by another service. This file can be found at /etc/ssh/ssh_config. Run this command to edit the ssh config file: nano ~/. 2017 Leave a comment on Configuring SSH checks in Zabbix It took somehow some Linux servers to configure SSH checks to not install Zabbix-agent on them. -- Restart the SSH server. To disable this default behavior, open the /etc/ssh/sshd_config file again. Type sudo armbian-config and change timezone, reconfigure language, locales, network. compute the ssh config about certain Host. rb but it should be "production". nano -w /etc/ssh/ssh_config Scroll through the Nano text editor using the Up/Down arrow keys, locate the line that says "ForwardX11" and remove the comment symbol (#) from in front of the code. nano /etc/ssh/sshd_config Find the following line: #Banner none Remove the pound sign (#). On the client machine. Besides basic text editing, nano offers many extra features, such as an interactive search-and-replace, undo/redo, syntax coloring, smooth scrolling, auto-indentation, go-to-line-and-column-number, feature toggles, file locking, backup files, and internationalization support. You can create a tunnel by connecting to your server with PuTTY as follows. Multiple SSH keys for different accounts on Github or Gitlab. Headless Raspberry Pi setup with wifi. $ sudo systemctl restart sshd. 04 using Netplan - DNS Information Configure Static IP Address using ifupdown / Network Manager Install the below packages using apt command to support the old method of configuring static IP address to systems. SSH remoting lets you do basic PowerShell session remoting between Windows and Linux computers. First, open up the ssh configuration file by running the following command: sudo nano /etc/ssh/sshd_config. To connect to Windows hosts over SSH, you must install and configure the Win32-OpenSSH fork that is in development with Microsoft on the Windows host(s). Open the file: nano /etc/ssh/sshd_config. on Ubuntu 16. Set it to 3, as you see below: MaxAuthTries 3. 04 sudo nano /etc/ssh/sshd_config change PermitRootLogin prohibit-password to PermitRootLogin yes sudo service ssh restart still permission denied. SSH for home computers putty gen download. Install nano. sudo chmod 700 ~/. Select task - The Quick/Easy Install option should be fine for most occasions. sudo nano /etc/ssh/sshd_config. So you do not need to make any SSH configuration changes on the virtual machine. You can now find the Posh-SSH Module and. before changing port for SSH need to be sure than no other application/service use it. The new setting will take effect only after you restart the service sudo systemctl restart sshd. x86_64 to i686. It can be done using root or user with sudo rights. nano /etc/ssh/sshd_config By default, SSH servers handle authentication via the user's password. In this article you'll learn how to install and configure the OpenSSH Server on Windows Server 2019 and configure authentication to work using passwords and keys. This tutorial explains how to generate SSH keys on Windows with PuTTYgen. Now, you will be prompt for the passphrase you’ve entered in the Putty Key Generator: Get rid of the old username/password method by editing your ssh config: sudo nano /etc/ssh/sshd_config; Add / Modifiy these lines. SSH can forward a graphical application, or a port. You can view/check to see all/any Public key(s) you have uploaded into your project by opening the terminal and running cat ~/. It is a very convenient tool for accessing the JHPCE cluster and utilizing the many features of the cluster. SSH server settings are stored in the /etc/ssh/sshd_config file. En este pequeño articulo vamos a ver como configurar un servidor ssh para poder acceder remotamente a nuestro server. I've not changed any ssh configuration files since then. If you don't have nano installed (it's a text editor), run this command: sudo apt-get install nano -y. To disable password authentication, we need to modify the sshd_config file. Next, to enable an SSH key as one factor and the verification code as a second, we need to tell SSH which factors to use and prevent the SSH key from overriding all other types. Once your server and login info is inputted, hit Control+O to save the file, then Control+X to quit out of nano. Welcome to my Linux Commands for Beginners tutorial series, where I'll show you how to use the Linux Command shell (specifically Bash) one command at a time. If successful, you will see your results similar to Fig 5. Because here our OpenSSH client version is 7. php and edit the file. sudo nano / etc / ssh / sshd_config Find the line starting with PermitRootLogin yes and change it to #PermitRootLogin yes then close and save file. Open the configuration file in the nano editor. On your server, edit the ssh configuration file, in order to modify SSH port. Now it’s time to get SSH to work. Installing and Updating Cygwin Packages Installing and Updating Cygwin for 64-bit versions of Windows. CentOS: Requiring a Yubikey OTP for SSH Password logins. Write the following lines, filling in your own information in any fields that are written like :. There is no technical reason why NanoDLP can't do the slicing itself, but the more I think about this, the more I'm kind of "meh" on it. After entering sudo nano ssh_config, we need type system login password. git config --global core. We're going to edit the ssh config file. Enabling SSH allows you to use your Raspberry Pi headless, meaning you can use it without a keyboard and monitor by connecting to it from another computer. The name of this file differs depending on the platform. pem [email protected] Once you're logged in as the ubuntu user, you need root privileges to edit the sshd_config file. If you have a few hosts you use frequently, you can add them to an SSH config file so they automatically appear in the host dropdown. Use the following command to do that (you don't need to understand this command yet-we'll cover it later in the semester). 04: Generate a ssh key and disable password authentication on the Ubuntu 12. After a few weeks of testing on the field, I’ve found the perfect configuration for WiFi pentesting using a WiFi Pineapple NANO, an OSX laptop and BetterCap. Instructions on setting up a System76 server, including initial login credentials. The SSH protocol has the ability to forward arbitrary network connections over your encrypted SSH connection, to avoid the network traffic being sent in clear. Also be aware that with today Debian distribution you will have to modify the SSHD configuration file in order to re-enable old Cypher and Algorithm because Cisco SSH stack is still using old ones. Configure your Docker Engine Estimated reading time: 2 minutes By default Docker Engine uses TLS when pushing and pulling images to an image registry like Docker Trusted Registry. x with the IP address of your server) in “Destination” (1) and then clicking “Add” (2):. For example, if you want to enable the mouse in nano, uncomment the set mouse option. The directive for disabling password authentication is still under the /etc/ssh/sshd_config file. Enter sudo raspi-config in the terminal, first select Interfacing options, then >navigate to ssh, press Enter and select Enable or disable ssh server. Once your server and login info is inputted, hit Control+O to save the file, then Control+X to quit out of nano. Démarrer Putty. LibreELEC installation and configuration This guide is provided as-is. Copy and paste the command into your terminal and hit enter. We can even present you find out how to securely hook up with the VNC server by an SSH tunnel. Below you will find the screen shot for Putty SSH connection configuration which is replacing the steps 5,6,7. En este pequeño articulo vamos a ver como configurar un servidor ssh para poder acceder remotamente a nuestro server. How to Install and Use Nano Text Editor. This means that it's not installed, isn't located in a preset PATH location, or perhaps not executable for some reason, such as permissions. Just delete the /etc/ssh/. nano config. Enable SSH on your Pi and connect remotely. This file can be found at /etc/ssh/ssh_config. The name of the file is the identifier for the account. ssh git Now you need a config file for organise these keys. At the very least, you want software on a real computer to do a plate layout (unless someone does some wiz SVG stuf on the web UI to do it, which may be a cool roadmap item but isn't super necessary). By default, Debian 8 has now killed your ability to log into root via SSH directly. Find the option "PasswordAuthentication" and change the value to no. Use the following command to do that (you don’t need to understand this command yet–we’ll cover it later in the semester). SSH is used for secure logons and data transfers because it offers stronger protection than other command shells. Maybe that is the problem. Nano Server can also be managed remotely using existing MMC snap-ins, Server Manager and the new web-based Server Management Tools (SMT). We will need to make some minor changes to the /etc/ssh/sshd_config file. This file is used by the SSH client. Find the following line (usually a page or two down. ssh/authorized_keys ChallengeResponseAuthentication no. sudo gedit /etc/ssh/sshd_config. Configure Networking on Ubuntu¶ During the installation of Ubuntu on your server an IP address was most likely obtained automatically. In this case, we used nano. The EdiMax EW-7811Un is popular for use with the Raspberry Pi. In this article, we’ll focus on installing and configuring its syntax highlighting feature on a Synology NAS. SSH is Known for its high security, cryptographic behavior and it is most widely used by Network Admins to control remote web servers. txt isn't editable by the pi user. How can we avoid password using SSH?. sudo nano /etc/ssh/sshd_config The port established by default is 22, we simply enter the desired port, in this case, we choose port 134. And i want to do a little modifiing to the /etc/ssh/sshd_config folder. UN-comment/configure: PubkeyAuthentication yes AuthorizedKeyFile %h/. Find the line “Port 22” and change it for example to “Port 58222“. Open the ssh config file for editing with the command sudo nano /etc/ssh/sshd_config. Please be sure to replace this text with the proper information for your site or server. First remove the existing line. 0 Why can't i see the "permitrootlogin" section in my /etc/ssh/sshd_config file inside my ubuntu droplet. Go to Preferences > Raspberry Pi > Configuration > Interfaces and enable SSH. Still in your own terminal edit the /etc/ssh/sshd_config file again, nano /etc/ssh/sshd_config. Configure console - The default configuration should be fine for most occasions. Because the DE10-Nano and the Altera software stack aren't really meant to work with macOS, I make heavy use of Virtualbox (for macOS) and a CentOS 7 virtual machine to do some of the Linux-specific stuff. Then change the port number from 22 to your preferable port (e. I try to change permission in the file ssh_config and in the folder etc, I did it, but in vain; still no permission to go inside the file to change something. Port – specifies the port used to connect via SSH to the server. mc and send mail. mention before that you will then have allow ssh for those users. Paste all your public keys in the OpenSSH-RSA format (one key per line). d/ssh restart. Changing the default SSH port on CentOS 7; To change the default SSH port, the first thing you want to do is backup the current SSH configuration on your system. The commands at the bottom of the page are executed by holding down Ctrl on your keyboard followed by the letter listed. Once in a while i want to setup a new Raspberry Pi without the need to connect it to a display, keyboard or ethernet cable. sudo nano /etc/ssh/sshd_config. Also test all your changes before logging out of the server. Scroll down for a bit and you’ll see a line that says. 1 # Specify the address to listen on bind-interfaces # Bind to the interface server=8. Note: You’ll have to edit the config. Enter the command: sudo nano /etc/ssh/ssh_config and add the following two lines to the end of the file: HostkeyAlgorithms +ssh-dss KexAlgorithms +diffie-hellman-group1-sha1. Open the file in the nano text editor. Copy and paste the command into your terminal and hit enter. ssh/config [email protected]:~$ nano ~/. ssh/authorized_keys file using nano editor run the following command. Restarted SSH service: 'service sshd restart' I tried SSH'ing into the box and I get nothing. 2022) And press Ctrl +O and Ctrl +X in order to save and exit. EverythingWeb. All the sendmail configuration files are located at /etc/mail 2. Then you need to login to your cPanel -> SSH/Shell Access tool and generate an SSH key pair as explained here. In this article, I will show you how to install and configure SSH server on Debian 9 Stretch for remote login. ssh git Now you need a config file for organise these keys. Open file sshd_config located in etc/ssh: sudo nano /etc/ssh/sshd_config. because the NANO team has put all config files on. (Note that some languages have different comment formats, so this may not be true if you’re working with a source code file. Launching and Connecting. Locate the line ' # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc' and remove the Hash/Pound sight from the beginning. This can't be done via Pi-Star Configuration; instead, you must configure the system Locales setting. Alternatively, you can set the installer image to any image in System Docker to install RancherOS. Follow the guide to set up SSH key-based authentication and then disable the plain password login. I am going to add a user named vivek to sudoers group on Ubuntu 18. This is where SSH keys will reside. /etc/ssh/ssh_config Systemwide configuration file. Edit SSH Daemon config file (if needed) [[email protected] ~]$ sudo nano /etc/ssh/sshd_config. Because here our OpenSSH client version is 7. nano /etc/ssh/sshd_config Search line "Port" and replace port number (by default 22) by another not used number. ssh/config, and I highly suggest consulting the online documentation or the ssh_config man page. General SSH Configuration Tips. If you need to install nano, run this command: sudo apt-get install nano. Important to make sure your OpenVPN on any TCP port not UDP. Find and uncomment the following line. Protocol 2,1. On Ubuntu desktop, you can also use gedit in place of of nano. cfg which seems to be the file that holds the wlan config. The following will configure your linux-based SSH server to use a pre-defined radius server for authentication instead of plain password authentication. 8 # Use Google DNS domain-needed # Don't forward short names bogus-priv # Drop the non-routed address spaces. There are a few SSHd configuration changes that will improve SSH security. We're going to edit the ssh config file. To use Nano to edit it, run this command (use 'sudo' if not logged in as root): $ (sudo) nano /etc/ssh/sshd_config Make the following changes (disabling PubKeyAuthentication is optional). But don’t forget… this is linux. SSH server configuration. All of our super fast LiteSpeed-powered shared hosting services include SSH access. Is it ok to modify this file directly? Will the change be persistent? What's the Ubiquiti supported way of doing a change via SSH?. SSHD service is unable to start in restricted mode. Enable SSH on your Pi and connect remotely. Both the global /etc/ssh/ssh_config and per-user ~/ssh/config have the same format. 01 can be accessed from that. The sshd_config file is an ASCII text based file where the different configuration options of the SSH server are indicated and configured with keyword/argument pairs. Type in nano followed by. My vagrant appliance working directory is ~/vagrant/centos-asterisk-server. edit /etc/ssh/sshd_config # make certain 'PasswordAuthentication yes' is set mon sshkey push poller01 asmonitor mon sshkey push poller01 Optional - "Monitor only" key exchange For increased security, OP5 recommends creating the public SSH key for the monitor user from the master to pollers and placing within the authorized_keys file. But since the relevant filesystem is in read-only mode in the NGFW, the sshd_config and login banner cannot be edited and added directly in /etc/ssh/ directory. In our last blogpost NVIDIA Jetson Nano Developer Kit - Introduction we digged into the brand-new NVIDIA Jetson Nano Developer Kit and we did found out, that Docker 18. Open the /etc/ssh/ssh_config file. [email protected]:~$ touch ~/. Other third party editors can also be use such as. Note: Remember to remove # that appears in front of the port number, so that it stops being a comment and the port change is applied. The ISO download is just over 6 GB but the Nano Server installation option download requires only around 550 MB. Do not pick a port number that is in use by another service. php-backup after you have found it. We open ssh_config via nano. If you run this through ssh and the ssh gets close because a micro network cut, then you need to restart the process from the beginning. ssh/config file in edit mode. txt Type in the necessary configuration parameters; Save the edited file; Press Control-x Press y Press [enter] After exiting the editor, restart using the command; sudo reboot NOTE: You may find that your changes to config. Kiran Patil said over 1 year ago on Production Deployment on Ubuntu: Thanks, one more thing is don't we need daemonize to run puma in background and environment is pointing to "development" in pumb. On the remote server, run the configuration file through SSH sudo nano /etc/ssh/sshd_config. I wasn't content to keep checking and un-checking the 'delete sends backspace' option, because these things ought to be automatic. The parameter in line PermitRootLogin should be set as yes. How to install and configure SSH on Ubuntu (Server) 14. Since different people from different forums had issues making this work ( mostly due to the difficulties. Démarrer Putty. Remove the # infront of 22 and change 22 to be any port you want. To exit the nano editor, press CTRL + x. Check the port context for ssh: We have to edit the file /etc/ssh/sshd_config in server using editor: vim,vi,nano and etc. Add the following lines ("Host * is already at top of ssh_config) Host * VisualHostKey yes. In this tutorial, you will learn how to install and use Nano text editor. Forwarding. Please note: Before using MySecureShell GUI, you must adjust the configuration file to allow the SFTP server to be managed remotely. /etc/ssh/sshd_config: Permission Denied Hey everyone i am trying to make my SSH-server more secure on my unbuntu server. CTRL+O followed by the enter key to save the file changes CTRL+X to close the Nano file editor; Reboot the sshd service using the following commands (I’m not sure which one works so let’s do all of them…) sudo service sshd restart sudo systemctl restart sshd; Try and reconnect to your Compute Engine instance using Putty (SSH) or Filezilla (SFTP). This implies that with the standard SSH configuration, your machine already has a nice target to attack. PasswordAuthentication no. Protocol 2,1. Set the ProxyCommand parameter in your SSH. You can use config. Important to make sure your OpenVPN on any TCP port not UDP. Manage OpenSSHD settings, freeze kernel upgrades, toggle hardware settings. Our previous guide on How To Run Bash Scripts on Windows 10 Via Git Bash To Launch Linux GUI App has some basic lack of features which Windows PowerShell provides. By the end of this documentation, we'll have configured a CentOS server to require. secrets just return 'nano: command not found" Vi seems bust too. Secure SSH for CSF. Initial Setup. Configure the /etc/ssh/sshd_config file The /etc/ssh/sshd_config file is the system-wide configuration file for OpenSSH which allows you to set options that modify the operation of the daemon. nano / etc / network / interfaces This is your network configuration file for proxmox, you might see one bridged interface already configured (bridged to your physical interface), paste following at the end of your configuration file. Here we'll be using the nano editor, although you can use any other editor of your choice. Use the nano or vi text editor to modify the /boot/config. The best thing to do is that if you can only gain SSH access to a remote device and aren't able to connect via the web, then: Configure a local radio the way you want. To exit the nano editor, press CTRL + x. Below are the recommended options. Now we should restart the SSH service in order for the new configuration to take effect. in this article we will explain some useful commands like how to nano delete line, nano delete all, save nano file or exit and close nano files. This means it can run and connect to the internet without having an. cd /etc/ssh. Its a tiny PC for IOT, with price that is equivalent of a blue tooth modules 7$ to 15$. Run this command to edit the ssh config file: nano ~/. After entering sudo nano ssh_config, we need type system login password. Copy and paste the command into your terminal and hit enter. sudo reboot Via Boot Disk. Enable SSH on your Pi and connect remotely. It can be done using root or user with sudo rights. By default secure shell (ssh) listens on tcp port 22. Check SSH service status To check the status of the SSH server, if it is running or not, you can run the following command in Terminal:. here] You can check this has worked by trying to login via a machine without SSH setup. $ sudo nano /etc/ssh/sshd_config. sudo systemctl restart sshd. 2, we need to modify configuration file of OpenSSH client under this condition. From operating systems that support bonjour/avahi/zeroconf you should be able to ssh in using ssh [email protected] In earlier versions of JetPack, this was the only way to configure the Jetson. Open the /etc/ssh/ssh_config file. ssh/config This command opens the nano editor with a blank file. After this your server will have public key authentication only. #vi /etc/hostname #invoke-rc. If DTR is using the default configurations or was configured to use self-signed certificates, you need to configure your Docker Engine to trust DTR. This file is used by the SSH client. nano -w /etc/ssh/sshd_config. I enabled ssh by performing the following: 1. Type the following command to run this utility. Type nano /home/user/. 2022) And press Ctrl +O and Ctrl +X in order to save and exit. Once password supplied it will go to background and you can use prompt for type commands on local system. On Ubuntu desktop, you can also use gedit in place of of nano. reconnect the ssh session to verify hostname status. You can also use the following syntax: nano /path/to/filename. and edit it to: Protocol 2. To do so. Once you've made those changes, save and close the file. # This is the ssh client system-wide configuration file. Because here our OpenSSH client version is 7. sudo service ssh status. sudo nano /etc/ssh/sshd_config. He's written Android apps, win32 apps (we called them applications back then), apps in python, and even a website or two. yaml file in a docker install of homeassistant. If you still have trouble, try searching for it or consider using the freeNAS forums. $ ssh -f -N tunnel. Our previous guide on How To Run Bash Scripts on Windows 10 Via Git Bash To Launch Linux GUI App has some basic lack of features which Windows PowerShell provides. In a previous post I showed how to configure a service to allow for remote access using PowerShell Remoting. Uncomment the line. Windows Guides¶. Then open it with nano. [email protected]# sudo nano /etc/ssh/sshd_config. Just do 'nano filename' to open a file with it. 2, in order to keep the default image secure, SSH is disabled. Edit sshd_config file: # vim /etc/ssh/sshd_config OR # nano /etc/ssh/sshd_config Find PermitRootLogin and set it as follows: PermitRootLogin no Save and close the file. The new setting will take effect only after you restart the service sudo systemctl restart sshd. Bookmark the permalink. The fact-checkers, whose work is more and more important for those who prefer facts over lies, police the line between fact and falsehood on a day-to-day basis, and do a great job. Today, my small contribution is to pass along a very good overview that reflects on one of Trump’s favorite overarching falsehoods. Namely: Trump describes an America in which everything was going down the tubes under  Obama, which is why we needed Trump to make America great again. And he claims that this project has come to fruition, with America setting records for prosperity under his leadership and guidance. “Obama bad; Trump good” is pretty much his analysis in all areas and measurement of U.S. activity, especially economically. Even if this were true, it would reflect poorly on Trump’s character, but it has the added problem of being false, a big lie made up of many small ones. Personally, I don’t assume that all economic measurements directly reflect the leadership of whoever occupies the Oval Office, nor am I smart enough to figure out what causes what in the economy. But the idea that presidents get the credit or the blame for the economy during their tenure is a political fact of life. Trump, in his adorable, immodest mendacity, not only claims credit for everything good that happens in the economy, but tells people, literally and specifically, that they have to vote for him even if they hate him, because without his guidance, their 401(k) accounts “will go down the tubes.” That would be offensive even if it were true, but it is utterly false. The stock market has been on a 10-year run of steady gains that began in 2009, the year Barack Obama was inaugurated. But why would anyone care about that? It’s only an unarguable, stubborn fact. Still, speaking of facts, there are so many measurements and indicators of how the economy is doing, that those not committed to an honest investigation can find evidence for whatever they want to believe. Trump and his most committed followers want to believe that everything was terrible under Barack Obama and great under Trump. That’s baloney. Anyone who believes that believes something false. And a series of charts and graphs published Monday in the Washington Post and explained by Economics Correspondent Heather Long provides the data that tells the tale. The details are complicated. Click through to the link above and you’ll learn much. But the overview is pretty simply this: The U.S. economy had a major meltdown in the last year of the George W. Bush presidency. Again, I’m not smart enough to know how much of this was Bush’s “fault.” But he had been in office for six years when the trouble started. So, if it’s ever reasonable to hold a president accountable for the performance of the economy, the timeline is bad for Bush. GDP growth went negative. Job growth fell sharply and then went negative. Median household income shrank. The Dow Jones Industrial Average dropped by more than 5,000 points! U.S. manufacturing output plunged, as did average home values, as did average hourly wages, as did measures of consumer confidence and most other indicators of economic health. (Backup for that is contained in the Post piece I linked to above.) Barack Obama inherited that mess of falling numbers, which continued during his first year in office, 2009, as he put in place policies designed to turn it around. By 2010, Obama’s second year, pretty much all of the negative numbers had turned positive. By the time Obama was up for reelection in 2012, all of them were headed in the right direction, which is certainly among the reasons voters gave him a second term by a solid (not landslide) margin. Basically, all of those good numbers continued throughout the second Obama term. The U.S. GDP, probably the single best measure of how the economy is doing, grew by 2.9 percent in 2015, which was Obama’s seventh year in office and was the best GDP growth number since before the crash of the late Bush years. GDP growth slowed to 1.6 percent in 2016, which may have been among the indicators that supported Trump’s campaign-year argument that everything was going to hell and only he could fix it. During the first year of Trump, GDP growth grew to 2.4 percent, which is decent but not great and anyway, a reasonable person would acknowledge that — to the degree that economic performance is to the credit or blame of the president — the performance in the first year of a new president is a mixture of the old and new policies. In Trump’s second year, 2018, the GDP grew 2.9 percent, equaling Obama’s best year, and so far in 2019, the growth rate has fallen to 2.1 percent, a mediocre number and a decline for which Trump presumably accepts no responsibility and blames either Nancy Pelosi, Ilhan Omar or, if he can swing it, Barack Obama. I suppose it’s natural for a president to want to take credit for everything good that happens on his (or someday her) watch, but not the blame for anything bad. Trump is more blatant about this than most. If we judge by his bad but remarkably steady approval ratings (today, according to the average maintained by 538.com, it’s 41.9 approval/ 53.7 disapproval) the pretty-good economy is not winning him new supporters, nor is his constant exaggeration of his accomplishments costing him many old ones). I already offered it above, but the full Washington Post workup of these numbers, and commentary/explanation by economics correspondent Heather Long, are here. On a related matter, if you care about what used to be called fiscal conservatism, which is the belief that federal debt and deficit matter, here’s a New York Times analysis, based on Congressional Budget Office data, suggesting that the annual budget deficit (that’s the amount the government borrows every year reflecting that amount by which federal spending exceeds revenues) which fell steadily during the Obama years, from a peak of $1.4 trillion at the beginning of the Obama administration, to $585 billion in 2016 (Obama’s last year in office), will be back up to $960 billion this fiscal year, and back over $1 trillion in 2020. (Here’s the New York Times piece detailing those numbers.) Trump is currently floating various tax cuts for the rich and the poor that will presumably worsen those projections, if passed. As the Times piece reported: