View previous topic :: View next topic |
Author |
Message |
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 8:50 am Post subject: How to copy code iduring installation in vitualbox to forum |
|
|
Hello, i'm new to this forum and to linux, especially gentoo and to IT programming stuff. I've already installed gentoo, following official guide on virtualbox and decided to install once again. This is offtopic covering my problem, so id rather start with another one. How to copy text code from installation environment from virtualbox to here, so that i could post my next problem to the next topic?
For example
Code:
Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB
etc... |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Sun Sep 12, 2021 9:53 am Post subject: |
|
|
You can use wgetpaste and report the tiny url that return. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Sun Sep 12, 2021 9:54 am Post subject: |
|
|
Moved from Documentation, Tips & Tricks to Other Things Gentoo. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 12:24 pm Post subject: |
|
|
Jaglover, so i emerged sshd by entering emerge --ask --changed-use net-misc/openssh and entered every command down the page https://wiki.gentoo.org/wiki/SSH and whats gonna happen? I still cant copy it from the terminal to windows but i can select, right click and there is a paste text in the terminal and not on windows still.What exactly should i do to SSH? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Sun Sep 12, 2021 12:35 pm Post subject: |
|
|
You should run the daemon on gentoo and from Windows you can connect to the VM via ssh with a program like putty. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 1:26 pm Post subject: |
|
|
ok, ive installed putty, run rc-service sshd, run putty by entering ip address of my vm, still cant do copy. Damn i didnt know this would go so far |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 2:42 pm Post subject: |
|
|
putty asks me for a login and passwd so i entered login its livecd but what is the password?I tryed to change the passwd in gentoo whether its root or non-root and iafter entering passwd in putty it tells me its wrong |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Sun Sep 12, 2021 4:16 pm Post subject: |
|
|
For connect directly from root you should add line PermitRootLogin yes in /etc/ssh/sshd_config and restart sshd service.
Remember to remove this line when you are done since it is not safe to leave remote access to the root user. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 7:12 pm Post subject: |
|
|
its already been set to permitrootlogin yes, i just get "permission denied" when entering passwd in putty |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 7:32 pm Post subject: |
|
|
to add user i need first chroot then root #useradd -m -G users,wheel,audio -s /bin/bash larry
root #passwd larry? |
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 7:42 pm Post subject: |
|
|
ok so i did use root #useradd -m -G users,wheel,audio -s /bin/bash larry
root #passwd larry
and STILL password denied |
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 7:44 pm Post subject: |
|
|
*not password but ACCESS denied and whatever the login is after i enter password it outputs me ACCESS denied |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 7:54 pm Post subject: |
|
|
you mean in /etc/ssh/sshd_config password authentication? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 8:02 pm Post subject: |
|
|
that one was in chroot |
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 8:04 pm Post subject: |
|
|
i chrooted and created login with passwd and then changed password authentication to yes |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 8:10 pm Post subject: |
|
|
hold on, to run daemon i need only these commands?
root #rc-update add sshd default
root #rc-service sshd start |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 8:23 pm Post subject: |
|
|
how do i login over ssh? i havnt done it before i guess |
|
Back to top |
|
|
gentoouser212 n00b
Joined: 12 Sep 2021 Posts: 43
|
Posted: Sun Sep 12, 2021 8:25 pm Post subject: |
|
|
Connecting to a distant SSH server that is? |
|
Back to top |
|
|
|