

Example: export PYTHONPATH=/some/where/with/modules When a particular user wants to pass the environment variable to everything running after a certain point in code, then the user would “ export” the variable. Oct 16 21:48:50 x systemd-logind: Removed session 262.Īre you using Python 2 or Python 3? Might be some differences between versions (due to different releases perhaps being in different directories), but basically the environment variables of a regular user are more set up than for when the system runs from the init process. Oct 16 21:48:50 x sshd: pam_unix(sshd:session): session closed for user x Oct 16 21:48:50 x systemd-logind: New session 262 of user x.

Oct 16 21:48:50 x sshd: pam_unix(sshd:session): session opened for user x by (uid=0)
SSH COPY SCRIPT AND EXECUTE PASSWORD
I am using ssh-keygen -t rsa -b 4096 and ssh-copy-id -i to host, although it still asks for a password.Ĭt 16 21:48:50 x sshd: Accepted password for x from 10.1.1.250 port 46928 ssh2 Here are the same debug lines from a non-Nano Ubuntu X86 machine running the same command, truncated to just the last few lines that differ from the Nano logĭebug2: client_check_window_change: changed

It says the connection was successful, the file was transferred, but it will not execute. Transferred: sent 82964, received 2308 bytes, in 0.9 secondsīytes per second: sent 91588.9, received 2547.9 This is the log from ssh using the -vvv optionĭebug1: Authentication succeeded (password).Īuthenticated to 10.xxxxxxxx (:22).ĭebug3: ssh_session2_open: channel_new: 0ĭebug1: client_input_global_request: rtype want_reply 0ĭebug2: channel_input_open_confirmation: channel 0: callback startĭebug3: ssh_packet_set_tos: set IP_TOS 0x08ĭebug3: Ignored env PANEL_GDK_CORE_DEVICE_EVENTSĭebug3: Ignored env GTK_OVERLAY_SCROLLINGĭebug3: Ignored env DBUS_SESSION_BUS_ADDRESSĭebug2: channel 0: request exec confirm 1ĭebug2: channel_input_open_confirmation: channel 0: callback doneĭebug2: channel 0: open confirm rwindow 0 rmax 32768ĭebug2: channel_input_status_confirm: type 99 id 0ĭebug2: exec request accepted on channel 0ĭebug2: channel 0: chan_shutdown_read (i0 o0 sock -1 wfd 4 efd 6 )ĭebug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 5 efd 6 )ĭebug1: client_input_channel_req: channel 0 rtype exit-signal reply 0ĭebug3: channel 0: will not send data after closeĭebug1: channel 0: free: client-session, nchannels 1ĭebug3: channel 0: status: The following connections are open: The same script will work using the same piping technique over ssh if the remote machine is not a Nano, ie not L4T. But the script will not run if I pipe the script over ssh to the nano. The script works on the Nano if I copy it to the Nano and then run it. Hi, I am trying to execute a python script remotely over ssh connection to the Jetson Nano but the Nano will not run the script.
