0

When I make a ssh connection with root account to my desktop using putty and installed some programs. when I list that program type and press doubletab, will complete/list all associated commands.

Ex. Putty - SSH - 192.168.1.5

root@192.168.1.5:~# apt-get install aircrack-ng 
root@192.168.1.5:~# ai<TAB><TAB> 
airbase-ng aireplay-ng aircrack-ng airmon-ng airdecap-ng airodump-ng airdecloak-ng airtun-ng airdecloak-ng...

Xrdp - session Xorg - 192.168.1.5

root@192.168.1.5:~# air<tab><tab>
aircrack-ng airdecloak-ng

Both are root@192.168.1.5:~#. I need understand this. Other thing its on xfc4-terminal run ssh root@localhost and ssh root@192.168.1.5 do the same thing above respectively.

How can I push command in xfce4-terminal after installed this packages on ssh connection?

Same happens for the history commands. Example:

  • SSH Connection: Only shows history of this user in ssh.
  • Local connection: Only shows the xfce4-terminal history. Dont show packages installed with ssh session.

I think its a 'session' association?

muru
  • 207,228
danuel
  • 3
  • 3

1 Answers1

0

You are not root on the second case. You should run sudo su or sudo -s to become root in the xfce4-terminal and try again the ai<tab><tab>


EDIT: You should probably put this line at the end of /root/.bashrc

. ~/.bash_profile

More reading is here: Why ~/.bash_profile is not getting sourced when opening a terminal?

j123b567
  • 176
  • 5